http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57792

--- Comment #5 from Jack Howarth <howarth at nitro dot med.uc.edu> ---
I am really surprised the following change if insufficient to replace manually 
passing…

--with-sysroot="`xcrun --show-sdk-path`"

to configure on the command line for darwin13...

Index: configure.ac
===================================================================
--- configure.ac        (revision 200683)
+++ configure.ac        (working copy)
@@ -2848,6 +2848,13 @@ if test x${is_cross_compiler} = xyes ; t
   target_configargs="--with-cross-host=${host_noncanonical}
${target_configargs}"
 fi

+case "${target}" in
+  x86_64-*-darwin13*)
+    target_configargs="--with-sysroot=\"`xcrun --show-sdk-path`\" 
${target_configargs}"
+    ;;
+esac
+
+
 # Default to --enable-multilib.
 if test x${enable_multilib} = x ; then
   target_configargs="--enable-multilib ${target_configargs}"
Index: configure
===================================================================
--- configure   (revision 200683)
+++ configure   (working copy)
@@ -7414,6 +7414,13 @@ if test x${is_cross_compiler} = xyes ; t
   target_configargs="--with-cross-host=${host_noncanonical}
${target_configargs}"
 fi

+case "${target}" in
+  x86_64-*-darwin13*)
+    target_configargs="--with-sysroot=\"`xcrun --show-sdk-path`\" 
${target_configargs}"
+    ;;
+esac
+
+
 # Default to --enable-multilib.
 if test x${enable_multilib} = x ; then
   target_configargs="--enable-multilib ${target_configargs}"


This patch (without explicitly passing --with-sysroot to configure) results in
the fixincludes complaining about not finding /usr/include again but the
top-level config.log shows target_configargs has
--with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX10.9.sdk on it.
Should I be appending "--with-sysroot=\"`xcrun --show-sdk-path`\" to different
variable instead?

Reply via email to