From 60361817ee26495cd660857214684cbf9912f2cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Fri, 25 Jun 2010 15:45:04 +0000 Subject: [PATCH] configure: reverse order of -l flags Adding new libs to the front of the list allows them to resolve symbols against previously added ones. Originally committed as revision 23780 to svn://svn.ffmpeg.org/ffmpeg/trunk --- configure | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 6bd7010f1f..bbff51f660 100755 --- a/configure +++ b/configure @@ -519,6 +519,12 @@ append(){ eval "$var=\"\$$var $*\"" } +prepend(){ + var=$1 + shift + eval "$var=\"$* \$$var\"" +} + add_cppflags(){ append CPPFLAGS $($filter_cppflags "$@") } @@ -536,7 +542,7 @@ add_ldflags(){ } add_extralibs(){ - append extralibs "$@" + prepend extralibs "$@" } check_cmd(){