aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-02-21 21:07:37 +0000
committerMåns Rullgård <mans@mansr.com>2009-02-21 21:07:37 +0000
commit154d432cc4db96a0320afe948b78d18320a3174a (patch)
tree11f0e940034d2bc0187599a31aca17eb6b20eb4a /configure
parentc5200f175342c60a4860d9bfd6cd17a5995a385e (diff)
downloadffmpeg-154d432cc4db96a0320afe948b78d18320a3174a.tar.gz
Pass sysroot argument to gcc
Originally committed as revision 17500 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index 780154455a..8de7aa4aad 100755
--- 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; }