Add -lav* to the front of LDFLAGS, fixes linking on Linux.
authorPanagiotis Issaris <takis.issaris@uhasselt.be>
Fri, 8 Sep 2006 19:36:21 +0000 (19:36 +0000)
committerDiego Biurrun <diego@biurrun.de>
Fri, 8 Sep 2006 19:36:21 +0000 (19:36 +0000)
patch by Panagiotis Issaris, takis.issaris uhasselt be

Originally committed as revision 6204 to svn://svn.ffmpeg.org/ffmpeg/trunk

Makefile

index 14f991c..0ce3b2a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -59,7 +59,7 @@ endif
 OBJS = ffmpeg.o ffserver.o cmdutils.o ffplay.o
 SRCS = $(OBJS:.o=.c) $(ASM_OBJS:.o=.s)
 LDFLAGS += -L./libavformat -L./libavcodec -L./libavutil
-EXTRALIBS += -lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lavutil$(BUILDSUF)
+EXTRALIBS := -lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lavutil$(BUILDSUF) $(EXTRALIBS)
 
 ifeq ($(CONFIG_SWSCALER),yes)
 LDFLAGS+=-L./libswscale