Browse code

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

Måns Rullgård authored on 2010/06/26 00:45:04
Showing 1 changed files
... ...
@@ -519,6 +519,12 @@ append(){
519 519
     eval "$var=\"\$$var $*\""
520 520
 }
521 521
 
522
+prepend(){
523
+    var=$1
524
+    shift
525
+    eval "$var=\"$* \$$var\""
526
+}
527
+
522 528
 add_cppflags(){
523 529
     append CPPFLAGS $($filter_cppflags "$@")
524 530
 }
... ...
@@ -536,7 +542,7 @@ add_ldflags(){
536 536
 }
537 537
 
538 538
 add_extralibs(){
539
-    append extralibs "$@"
539
+    prepend extralibs "$@"
540 540
 }
541 541
 
542 542
 check_cmd(){