From c6a8f2ce07c3436ab059d2f60378c1dd19b4840b Mon Sep 17 00:00:00 2001
From: Philip Gladstone <philipjsg@users.sourceforge.net>
Date: Thu, 9 May 2002 01:04:19 +0000
Subject: [PATCH] Move the EXTRALIBS to the end of the link line where they
 actually get used!

Originally committed as revision 452 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 6eae5bf5559..a4f8d579df8 100644
--- a/Makefile
+++ b/Makefile
@@ -39,10 +39,10 @@ lib:
 	$(MAKE) -C libav all
 
 ffmpeg$(EXE): ffmpeg.o libav/libav.a $(DEP_FFMPEG_LIB)
-	$(CC) $(LDFLAGS) $(EXTRALIBS) -o $@ $^ $(FFMPEG_LIB)
+	$(CC) $(LDFLAGS) -o $@ $^ $(FFMPEG_LIB) $(EXTRALIBS)
 
 ffserver$(EXE): ffserver.o libav/libav.a $(DEP_FFMPEG_LIB)
-	$(CC) $(LDFLAGS) $(EXTRALIBS) -o $@ $^ $(FFMPEG_LIB)
+	$(CC) $(LDFLAGS) -o $@ $^ $(FFMPEG_LIB) $(EXTRALIBS)
 
 ffplay: ffmpeg$(EXE)
 	ln -sf $< $@
-- 
GitLab