Pass sysroot argument to gcc
authorMåns Rullgård <mans@mansr.com>
Sat, 21 Feb 2009 21:07:37 +0000 (21:07 +0000)
committerMåns Rullgård <mans@mansr.com>
Sat, 21 Feb 2009 21:07:37 +0000 (21:07 +0000)
Originally committed as revision 17500 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 7801544..8de7aa4 100755 (executable)
--- a/configure
+++ b/configure
@@ -1366,6 +1366,15 @@ fi
 
 test -n "$cc_type" && enable $cc_type || echolog "Unknown C compiler $cc"
 
+if test -n "$sysroot"; then
+    case "$cc_type" in
+        gcc)
+            add_cflags  --sysroot="$sysroot"
+            add_ldflags --sysroot="$sysroot"
+        ;;
+    esac
+fi
+
 # compiler sanity check
 check_exec <<EOF
 int main(void){ return 0; }