]> git.sesse.net Git - ffmpeg/commitdiff
configure: reverse order of -l flags
authorMåns Rullgård <mans@mansr.com>
Fri, 25 Jun 2010 15:45:04 +0000 (15:45 +0000)
committerMåns Rullgård <mans@mansr.com>
Fri, 25 Jun 2010 15:45:04 +0000 (15:45 +0000)
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

index 6bd7010f1f1d82a18b97721dc963ce4328188afc..bbff51f660d9130eabc760725c85aab0e650d157 100755 (executable)
--- 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(){