changeset 5793:a4165df1936d

divx audio workaround
author arpi
date Tue, 23 Apr 2002 09:26:29 +0000
parents d2aec12937f8
children d9c211c2907f
files loader/Makefile
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/loader/Makefile	Tue Apr 23 01:31:01 2002 +0000
+++ b/loader/Makefile	Tue Apr 23 09:26:29 2002 +0000
@@ -14,8 +14,10 @@
 # the bad code accesses parameters via %ebp without setting up a
 # propper %ebp first!
 # -fno-omit-frame-pointer works around this gcc-3.0 bug.  gcc-2.95.2 is OK.
+# Note: -D_FILE_OFFSET_BITS=32 is required to disable using mmap64(),
+# as it's broken in glibc 2.1.2 (bad header) and 2.1.3 (bad code)
 WARN_FLAGS = -Wmissing-prototypes -Wimplicit-function-declaration
-CFLAGS=-I. -I.. $(OPTFLAGS) $(EXTRA_INC) $(WARN_FLAGS) -fno-omit-frame-pointer
+CFLAGS=-I. -I.. $(OPTFLAGS) -D_FILE_OFFSET_BITS=32 $(EXTRA_INC) $(WARN_FLAGS) -fno-omit-frame-pointer
 #CFLAGS=-I. -I.. -O $(WARN_FLAGS) -g #-fno-omit-frame-pointer
 
 all: libloader.a