summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2014-03-23 17:57:32 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-03-23 19:01:16 +0100
commitcc6d549adbb838ef87b1f251ca469dc4c3dd39aa (patch)
treed422ae574bc9674bfa210736daa7734c0c312d25 /configure
parent942cded690bc6dc931c60078f39cf0f339a89058 (diff)
Always pass the configure option sysroot to --sysroot and -isysroot.
On darwin, --sysroot may be ignored.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index f0a05b00ff..2ea7e3c01f 100755
--- a/configure
+++ b/configure
@@ -3398,6 +3398,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"