From 3155a644a69cda08739ed57f22c5ce443a80d657 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Tue, 19 Jun 2007 01:27:51 +0000 Subject: [PATCH] place -l flags after object files in check_ld() Originally committed as revision 9367 to svn://svn.ffmpeg.org/ffmpeg/trunk --- configure | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 985afbf6d9..0ecacceadb 100755 --- a/configure +++ b/configure @@ -398,7 +398,12 @@ check_cpp(){ check_ld(){ log check_ld "$@" check_cc || return - check_cmd $cc $LDFLAGS "$@" -o $TMPE $TMPO $extralibs + flags='' + libs='' + for f; do + test "${f}" = "${f#-l}" && flags="$flags $f" || libs="$libs $f" + done + check_cmd $cc $LDFLAGS $flags -o $TMPE $TMPO $extralibs $libs } check_cflags(){