The attached patch eliminates the problem of the SDK being removed from / in 
darwin13
and later by appending --with-sysroot=\"`xcrun --show-sdk-path`\" to 
host_configargs
in the top-level configure for those cases . Bootstrap tested on 
x86_64-apple-darwin13. 
Okay for gcc trunk and gcc-4_8-branch?
        Jack
2013-07-05  Jack Howarth  <howa...@bromo.med.uc.edu>

        PR target/57792
        * configure.ac: Use --with-sysroot=\"`xcrun --show-sdk-path`\" on 
darwin13 and later.
        * configure: Regenerated.

Index: configure.ac
===================================================================
--- configure.ac        (revision 200683)
+++ configure.ac        (working copy)
@@ -2850,6 +2850,13 @@ if test x${is_cross_compiler} = xyes ; t
   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}"

Reply via email to