提交 00ba041c 编写于 作者: M Mans Rullgard

Use --sysroot flag for clang

Although not documented, clang does support the --sysroot flag, and it
does the right thing.  Use this flag intead of -isysroot which only
applies to header file searches, not the linker.
Signed-off-by: NMans Rullgard <mans@mansr.com>
上级 0b32da90
......@@ -2046,7 +2046,7 @@ add_asflags $extra_cflags
if test -n "$sysroot"; then
case "$cc_type" in
gcc|llvm_gcc)
gcc|llvm_gcc|clang)
add_cppflags --sysroot="$sysroot"
add_ldflags --sysroot="$sysroot"
;;
......@@ -2054,10 +2054,6 @@ if test -n "$sysroot"; then
add_cppflags -I"$sysinclude"
add_ldflags --sysroot="$sysroot"
;;
clang)
add_cppflags -isysroot "$sysroot"
add_ldflags -isysroot "$sysroot"
;;
esac
fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册