From 154d432cc4db96a0320afe948b78d18320a3174a Mon Sep 17 00:00:00 2001 From: =?utf8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Sat, 21 Feb 2009 21:07:37 +0000 Subject: [PATCH] Pass sysroot argument to gcc Originally committed as revision 17500 to svn://svn.ffmpeg.org/ffmpeg/trunk --- configure | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure b/configure index 7801544..8de7aa4 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 <