From be1a0d71eaad5b6a8edea426153e78da501c618a Mon Sep 17 00:00:00 2001 From: Jack Howarth Date: Wed, 10 Jul 2013 20:52:45 +0000 Subject: [PATCH] re PR target/57792 (toplevel configure should enable "--with-sysroot="`xcrun --show-sdk-path`"" for darwin13 and later) 2013-07-10 Jack Howarth PR target/57792 * configure.ac: Use --with-sysroot=\"`xcrun --show-sdk-path`\" on darwin13 and later. * configure: Regenerated. From-SVN: r200886 --- configure | 7 +++++++ configure.ac | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/configure b/configure index e161cada19ea..acaaa57dc1d1 100755 --- 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}" diff --git a/configure.ac b/configure.ac index bec489fc3951..f689866be0ce 100644 --- a/configure.ac +++ b/configure.ac @@ -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}"