Add --sysroot flag to CPPFLAGS, not CFLAGS
authorMåns Rullgård <mans@mansr.com>
Sun, 12 Jul 2009 13:29:35 +0000 (13:29 +0000)
committerMåns Rullgård <mans@mansr.com>
Sun, 12 Jul 2009 13:29:35 +0000 (13:29 +0000)
Originally committed as revision 19405 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 3be7aa0..34aba91 100755 (executable)
--- a/configure
+++ b/configure
@@ -1490,7 +1490,7 @@ set_default as
 if test -n "$sysroot"; then
     case "$cc_type" in
         gcc)
-            add_cflags  --sysroot="$sysroot"
+            add_cppflags --sysroot="$sysroot"
             add_ldflags --sysroot="$sysroot"
         ;;
     esac