Commit 7ec4f7dd authored by mru's avatar mru

Pass sysroot argument to gcc

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17500 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b96dce97
......@@ -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; }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment