gdb/
[deliverable/binutils-gdb.git] / configure
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}"
This page took 0.02778 seconds and 4 git commands to generate.