]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/57792 (toplevel configure should enable "--with-sysroot="`xcrun --show...
authorJack Howarth <howarth@bromo.med.uc.edu>
Wed, 10 Jul 2013 20:52:45 +0000 (20:52 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Wed, 10 Jul 2013 20:52:45 +0000 (20:52 +0000)
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

configure
configure.ac

index e161cada19ea5ed270691d4172d4138675e84d14..acaaa57dc1d19252ae38af3f8597e3a668595508 100755 (executable)
--- 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}"
index bec489fc39518a9113cc31f29f55eb60bb62f0e5..f689866be0ceb3f1a16cecc44f3ada404d7f16c4 100644 (file)
@@ -2850,6 +2850,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}"