]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Pass sysroot argument to gcc
authormru <mru@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 21 Feb 2009 21:07:37 +0000 (21:07 +0000)
committermru <mru@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 21 Feb 2009 21:07:37 +0000 (21:07 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17500 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

configure

index 780154455a431025695953f636555c17aaf3e24d..8de7aa4aad0d51751e4eb2d15fb76184f9f9f6d4 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; }