aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2013-07-10 20:55:59 +0000
committerMike Stump <mrs@apple.com>2013-07-10 20:55:59 +0000
commit79215ca75473b35293c88a17f2b48b58fb8712ae (patch)
tree6ffb6b45156e70f1c251257affba78a3435f15a6
parent94e36acc3c80011966791d3773596e5f14264eab (diff)
downloadgdb-79215ca75473b35293c88a17f2b48b58fb8712ae.zip
gdb-79215ca75473b35293c88a17f2b48b58fb8712ae.tar.gz
gdb-79215ca75473b35293c88a17f2b48b58fb8712ae.tar.bz2
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.
-rw-r--r--ChangeLog6
-rwxr-xr-xconfigure7
-rw-r--r--configure.ac7
3 files changed, 20 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 007f07b..5158cdd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2013-06-22 Richard Sandiford <rdsandiford@googlemail.com>
* configure.ac (mips*-*-bsd*, mips*-*-ultrix*, mips*-*-osf*)
diff --git a/configure b/configure
index 9da645b..551389b 100755
--- a/configure
+++ b/configure
@@ -7420,6 +7420,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}"
diff --git a/configure.ac b/configure.ac
index 226239b..d4dc10b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2854,6 +2854,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}"