[Ffmpeg-devel] [patch] rev. 6545 broke making shared builds on MinGW

Borat borat
Sun Oct 15 00:20:30 CEST 2006


Here is a patch that solves the problem reported at
http://lists.mplayerhq.hu/pipermail/ffmpeg-user/2006-October/005889.html

Index: common.mak
===================================================================
--- common.mak  (revision 6692)
+++ common.mak  (working copy)
@@ -13,8 +13,6 @@
 STATIC_OBJS := $(OBJS) $(STATIC_OBJS)
 SHARED_OBJS := $(OBJS) $(SHARED_OBJS)
 
-EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
-
 all: $(EXTRADEPS) $(LIB) $(SLIBNAME)
 
 $(LIB): $(STATIC_OBJS)
Index: libavcodec/Makefile
===================================================================
--- libavcodec/Makefile (revision 6692)
+++ libavcodec/Makefile (working copy)
@@ -406,6 +406,8 @@
 endif
 TESTS= cpuid_test imgresample-test dct-test motion-test fft-test
 
+EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
+
 include $(SRC_PATH)/common.mak
 
 amrlibs:
Index: libavformat/Makefile
===================================================================
--- libavformat/Makefile        (revision 6692)
+++ libavformat/Makefile        (working copy)
@@ -197,4 +197,6 @@
 LIBMAJOR=$(LAVFMAJOR)
 endif
 
+EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
+
 include $(SRC_PATH)/common.mak


--
B.





More information about the ffmpeg-devel mailing list