Pass sysroot argument to gcc

Originally committed as revision 17500 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Måns Rullgård 2009-02-21 21:07:37 +00:00
parent c5200f1753
commit 154d432cc4

9
configure vendored
View File

@ -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; }