add our -L flags before any other linker flags
authorMåns Rullgård <mans@mansr.com>
Sun, 10 Sep 2006 14:13:19 +0000 (14:13 +0000)
committerMåns Rullgård <mans@mansr.com>
Sun, 10 Sep 2006 14:13:19 +0000 (14:13 +0000)
Originally committed as revision 6220 to svn://svn.ffmpeg.org/ffmpeg/trunk

Makefile

index bf83752..dfa69aa 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -58,7 +58,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
+LDFLAGS := -L./libavformat -L./libavcodec -L./libavutil $(LDFLAGS)
 EXTRALIBS := -lavformat$(BUILDSUF) -lavcodec$(BUILDSUF) -lavutil$(BUILDSUF) $(EXTRALIBS)
 
 ifeq ($(CONFIG_SWSCALER),yes)