2013-07-10 Jack Howarth <howarth@bromo.med.uc.edu>
authorMike Stump <mrs@apple.com>
Wed, 10 Jul 2013 20:55:59 +0000 (20:55 +0000)
committerMike Stump <mrs@apple.com>
Wed, 10 Jul 2013 20:55:59 +0000 (20:55 +0000)
    PR target/57792
    * configure.ac: Use --with-sysroot=\"`xcrun --show-sdk-path`\" on darwin13 and later.
    * configure: Regenerated.

ChangeLog
configure
configure.ac

index 007f07b48f5395ed8f5fa5ce86da6319dd9f766d..5158cdd2b7e7de3876ba91ddedf0d01f05a0ffc7 100644 (file)
--- 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*)
index 9da645bb6b5bede97e3d27f9adfaff6fa7e6efd6..551389bc7c950a5bca1e0a039843d2f624071547 100755 (executable)
--- 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}"
index 226239b77d0e35eda60b93b9aef6938cc18647ce..d4dc10bd725c2ec1ef03bd318e225c42afa2f011 100644 (file)
@@ -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}"