From ad5a429c49669411e17ef2fbbc1f327b3b8e9d93 Mon Sep 17 00:00:00 2001
From: Roine Gustafsson <roine@users.sourceforge.net>
Date: Mon, 3 Jan 2005 00:36:56 +0000
Subject: [PATCH] Small configure fix for Darwin / Mac OS X. This option tells
 linker to look for local libraries first. If you have a shared
 livavcodec/libavformat in the library path and try to build a static build,
 the linker will find the shared library first and link with it. patch by
 (Roine Gustafsson <roine users.sourceforge net>)

Originally committed as revision 3793 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 9163aeaadd1..b085a0ea1a4 100755
--- a/configure
+++ b/configure
@@ -265,7 +265,7 @@ SHFLAGS="-dynamiclib"
 extralibs=""
 darwin="yes"
 strip="strip -x"
-LDFLAGS="-Wl,-d"
+LDFLAGS="-Wl,-d,-search_paths_first"
 FFSLDFLAGS=-Wl,-bind_at_load
 ;;
 MINGW32*)
-- 
GitLab