From 3b6e6f124e647d7eb73e25db1e1629fc428bc8be Mon Sep 17 00:00:00 2001 From: mrs Date: Wed, 10 Jul 2013 20:52:45 +0000 Subject: 2013-07-10 Jack Howarth PR target/57792 * configure.ac: Use --with-sysroot=\"`xcrun --show-sdk-path`\" on darwin13 and later. * configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200886 138bc75d-0d04-0410-961f-82ee72b054a4 --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index bec489fc395..f689866be0c 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}" -- cgit v1.2.1