configure: pass extra flags to check_cc from check_ld
authorMåns Rullgård <mans@mansr.com>
Sun, 17 Jan 2010 19:05:50 +0000 (19:05 +0000)
committerMåns Rullgård <mans@mansr.com>
Sun, 17 Jan 2010 19:05:50 +0000 (19:05 +0000)
Originally committed as revision 21264 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 62a7f98..04d51ae 100755 (executable)
--- a/configure
+++ b/configure
@@ -601,12 +601,12 @@ check_yasm(){
 
 check_ld(){
     log check_ld "$@"
-    check_cc || return
     flags=''
     libs=''
     for f; do
         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
 }