summaryrefslogtreecommitdiffstats
path: root/loader/Makefile
diff options
context:
space:
mode:
authorjkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-07-12 15:27:48 +0000
committerjkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-07-12 15:27:48 +0000
commita26b39974fb992cb400c6e9aff0a02737c2f4f59 (patch)
treebd6802ff279bb9ed79a9dec7f367861309741686 /loader/Makefile
parent009d2b0dc7ce5d7089bdb4136d1b575b115981d0 (diff)
downloadmpv-a26b39974fb992cb400c6e9aff0a02737c2f4f59.tar.bz2
mpv-a26b39974fb992cb400c6e9aff0a02737c2f4f59.tar.xz
Add prototypes to wine/loader stuff, so that we can catch __stdcall function
attribute mismatch between caller/caller. wine/loader is less sensitive to optimization now. (now that avifile-0.6 has the same patch installed, we're a bit closer to their CVS tree) Speed up win32 "QueryPerformanceFrequency" emulation on solaris. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1308 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/Makefile')
-rw-r--r--loader/Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/loader/Makefile b/loader/Makefile
index c04ec0a4ec..1b5ea406ec 100644
--- a/loader/Makefile
+++ b/loader/Makefile
@@ -1,18 +1,25 @@
include ../config.mak
# Generated automatically from Makefile.in by configure.
-DEFINES=-rdynamic -fPIC $(WIN32_PATH) $(CDOPT) -D__WINE__ -Ddbg_printf=__vprintf \
+DEFINES=$(WIN32_PATH) -D__WINE__ -Ddbg_printf=__vprintf \
-DTRACE=__vprintf # -DDETAILED_OUT
LIB_OBJECTS= setup_FS.o pe_image.o module.o \
ext.o win32.o driver.o pe_resource.o \
resource.o registry.o elfdll.o afl.o vfl.o
-CFLAGS=-g -I.
+# gcc-3.0 produces buggy code for acmStreamOpen() with
+# "-O3 -fomit-frame-pointer" or "-O2 -fomit-frame-pointer
+# -finline-functions -frename-registers" (code is OK with sole -O2),
+# 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.
+WARN_FLAGS = -Wmissing-prototypes -Wimplicit-function-declaration
+CFLAGS=-I. -I.. $(OPTFLAGS) $(EXTRA_INC) $(WARN_FLAGS) -fno-omit-frame-pointer
+#CFLAGS=-I. -I.. -O $(WARN_FLAGS) -g #-fno-omit-frame-pointer
-CDOPT=-g
all: libloader.a
-
+
clean:
-rm -f *.o libloader.a