OSDN Git Service

Add flags from --extra-cflags after compiler detection
authorMåns Rullgård <mans@mansr.com>
Sun, 12 Jul 2009 13:29:51 +0000 (13:29 +0000)
committerMåns Rullgård <mans@mansr.com>
Sun, 12 Jul 2009 13:29:51 +0000 (13:29 +0000)
Originally committed as revision 19411 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index fd03403..c347916 100755 (executable)
--- a/configure
+++ b/configure
@@ -996,6 +996,7 @@ CMDLINE_SET="
     cpu
     cross_prefix
     dep_cc
+    extra_cflags
     extra_version
     host_cc
     host_cflags
@@ -1343,8 +1344,6 @@ show_list() {
 for opt do
     optval="${opt#*=}"
     case "$opt" in
-    --extra-cflags=*) add_cflags $optval
-    ;;
     --extra-ldflags=*) add_ldflags $optval
     ;;
     --extra-libs=*) add_extralibs $optval
@@ -1494,6 +1493,8 @@ test -n "$cc_type" && enable $cc_type || echolog "Unknown C compiler $cc"
 : ${ld_default:=$cc}
 set_default as dep_cc ld
 
+add_cflags $extra_cflags
+
 if test -n "$sysroot"; then
     case "$cc_type" in
         gcc)