Always pass the configure option sysroot to --sysroot and -isysroot.
On darwin, --sysroot may be ignored.
(cherry picked from commit cc6d549adb
)
This commit is contained in:
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"
|
||||
|
Reference in New Issue
Block a user