Always pass the configure option sysroot to --sysroot and -isysroot.
On darwin, --sysroot may be ignored. (cherry picked from commit cc6d549adbb838ef87b1f251ca469dc4c3dd39aa)
This commit is contained in:
parent
9a884b7b97
commit
d461e077a5
3
configure
vendored
3
configure
vendored
@ -3324,6 +3324,9 @@ if test -n "$sysroot"; then
|
||||
gcc|llvm_gcc|clang)
|
||||
add_cppflags --sysroot="$sysroot"
|
||||
add_ldflags --sysroot="$sysroot"
|
||||
# On Darwin --sysroot may be ignored, -isysroot always affects headers and linking
|
||||
add_cppflags -isysroot "$sysroot"
|
||||
add_ldflags -isysroot "$sysroot"
|
||||
;;
|
||||
tms470)
|
||||
add_cppflags -I"$sysinclude"
|
||||
|
Loading…
x
Reference in New Issue
Block a user