configure: in check_ld, place new -l flags before existing ones
authorMans Rullgard <mans@mansr.com>
Fri, 25 Mar 2011 19:26:10 +0000 (19:26 +0000)
committerMans Rullgard <mans@mansr.com>
Fri, 25 Mar 2011 19:36:32 +0000 (19:36 +0000)
This fixes some library tests when --as-needed is in effect.

Signed-off-by: Mans Rullgard <mans@mansr.com>
configure

index 9b5d855..8e2961c 100755 (executable)
--- a/configure
+++ b/configure
@@ -641,7 +641,7 @@ check_ld(){
         test "${f}" = "${f#-l}" && flags="$flags $f" || libs="$libs $f"
     done
     check_cc $($filter_cflags $flags) || return
-    check_cmd $ld $LDFLAGS $flags -o $TMPE $TMPO $extralibs $libs
+    check_cmd $ld $LDFLAGS $flags -o $TMPE $TMPO $libs $extralibs
 }
 
 check_cppflags(){