diff options
author | Måns Rullgård <mans@mansr.com> | 2009-02-21 21:07:37 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2009-02-21 21:07:37 +0000 |
commit | 154d432cc4db96a0320afe948b78d18320a3174a (patch) | |
tree | 11f0e940034d2bc0187599a31aca17eb6b20eb4a /configure | |
parent | c5200f175342c60a4860d9bfd6cd17a5995a385e (diff) | |
download | ffmpeg-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-x | configure | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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; } |