[Ffmpeg-cvslog] CVS: ffmpeg/libavformat Makefile,1.111,1.112
Diego Biurrun CVS
diego
Sun Jan 29 19:32:57 CET 2006
Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv16855/libavformat
Modified Files:
Makefile
Log Message:
Simplify LDFLAGS handling for MinGW.
Index: Makefile
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/Makefile,v
retrieving revision 1.111
retrieving revision 1.112
diff -u -d -r1.111 -r1.112
--- Makefile 26 Jan 2006 23:42:29 -0000 1.111
+++ Makefile 29 Jan 2006 18:32:55 -0000 1.112
@@ -8,6 +8,11 @@
CFLAGS=$(OPTFLAGS) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavutil -I$(SRC_PATH)/libavcodec -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
+#FIXME: This should be in configure/config.mak
+ifeq ($(CONFIG_WIN32),yes)
+ LDFLAGS=-Wl,--output-def,$(@:.dll=.def)
+endif
+
OBJS= utils.o cutils.o os_support.o allformats.o
PPOBJS=
@@ -106,11 +111,9 @@
$(RANLIB) $@
$(SLIBNAME): $(OBJS)
+ $(CC) $(SHFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(PPOBJS) $(AVCLIBS) $(EXTRALIBS)
ifeq ($(CONFIG_WIN32),yes)
- $(CC) $(SHFLAGS) -Wl,--output-def,$(@:.dll=.def) -o $@ $(OBJS) $(PPOBJS) $(AVCLIBS) $(EXTRALIBS)
-lib /machine:i386 /def:$(@:.dll=.def)
-else
- $(CC) $(SHFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(PPOBJS) $(AVCLIBS) $(EXTRALIBS)
endif
depend: $(SRCS)
More information about the ffmpeg-cvslog
mailing list