From 7e75f9fe5e53707e0609691d6cc2ca8cd015f132 Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Fri, 25 Mar 2011 19:26:10 +0000 Subject: [PATCH] configure: in check_ld, place new -l flags before existing ones This fixes some library tests when --as-needed is in effect. Signed-off-by: Mans Rullgard --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 9b5d8552ce..8e2961c8b3 100755 --- 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(){