Commit 7e75f9fe authored by Mans Rullgard's avatar Mans Rullgard

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: 's avatarMans Rullgard <mans@mansr.com>
parent 7f0e747b
......@@ -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(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment