aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2007-06-19 01:27:51 +0000
committerMåns Rullgård <mans@mansr.com>2007-06-19 01:27:51 +0000
commit3155a644a69cda08739ed57f22c5ce443a80d657 (patch)
treeddf280f49a88d5d7e9b5167b930cab43d98c0112 /configure
parentff5a6541bd3508c38dc0e823094aaa7e02feed70 (diff)
downloadffmpeg-3155a644a69cda08739ed57f22c5ce443a80d657.tar.gz
place -l flags after object files in check_ld()
Originally committed as revision 9367 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 6 insertions, 1 deletions
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(){