aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJack Howarth <howarth@bromo.med.uc.edu>2013-07-10 20:52:45 +0000
committerMike Stump <mrs@gcc.gnu.org>2013-07-10 20:52:45 +0000
commitbe1a0d71eaad5b6a8edea426153e78da501c618a (patch)
tree053afeb70f9434b7c512f12a454544792a6e2a31 /configure
parent6a2fa4b28e0bb4bb48164a8f20900a8ea41159b1 (diff)
downloadgcc-be1a0d71eaad5b6a8edea426153e78da501c618a.zip
gcc-be1a0d71eaad5b6a8edea426153e78da501c618a.tar.gz
gcc-be1a0d71eaad5b6a8edea426153e78da501c618a.tar.bz2
re PR target/57792 (toplevel configure should enable "--with-sysroot="`xcrun --show-sdk-path`"" for darwin13 and later)
2013-07-10 Jack Howarth <howarth@bromo.med.uc.edu> PR target/57792 * configure.ac: Use --with-sysroot=\"`xcrun --show-sdk-path`\" on darwin13 and later. * configure: Regenerated. From-SVN: r200886
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure
index e161cad..acaaa57 100755
--- a/configure
+++ b/configure
@@ -7416,6 +7416,13 @@ if test x${is_cross_compiler} = xyes ; then
target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
fi
+# Pass --with-sysroot on darwin without SDK in /
+case "${target}" in
+ x86_64-*-darwin1[3-9]*)
+ host_configargs="--with-sysroot=\"`xcrun --show-sdk-path`\" ${host_configargs}"
+ ;;
+esac
+
# Default to --enable-multilib.
if test x${enable_multilib} = x ; then
target_configargs="--enable-multilib ${target_configargs}"