Skip to content
Snippets Groups Projects
Commit 154d432c authored by Måns Rullgård's avatar Måns Rullgård
Browse files

Pass sysroot argument to gcc

Originally committed as revision 17500 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent c5200f17
No related branches found
No related tags found
No related merge requests found
...@@ -1366,6 +1366,15 @@ fi ...@@ -1366,6 +1366,15 @@ fi
test -n "$cc_type" && enable $cc_type || echolog "Unknown C compiler $cc" 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 # compiler sanity check
check_exec <<EOF check_exec <<EOF
int main(void){ return 0; } int main(void){ return 0; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment