diff options
author | iains <iains@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-12-11 19:37:05 +0000 |
---|---|---|
committer | iains <iains@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-12-11 19:37:05 +0000 |
commit | 42d7e1defe8e5bcd7c7fc6c9621bcac7a3331073 (patch) | |
tree | 4ec724c82666dfbb790d9b1c3d5b4f19ca3a79d8 /gcc/configure | |
parent | aa73d4e60df10d0ec5b0d66f09c68338c9be4499 (diff) |
[Darwin, configury] No longer expect to find cross-target headers on the host.
Earlier Darwin (esp. Darwin8 and Darwin9) had FAT libraries and suitable header
installations in /usr/include such that one could build a cross-toolchain
(including cross-arch) using a common sysroot (including / for “current” version).
However this is no longer true on a number of levels. A vanilla Darwin system has
no headers installed in /usr and it's certainly not appropriate to try and find
headers/libs for (say) x86-64-darwinNN X powerpc-darwin in /usr on any Darwin NN > 10
(even Darwin10 is incomplete in that it omits the ppc64 multilib). In the latter
example, the catch-all in the current configury to mean that
"foo-darwin" == “foo-version-on-this-system” breaks the cross case
—target=powerpc-apple-darwin —host=some-system-later-than-darwin10.
gcc/
2016-12-11 Iain Sandoe <iain@codesourcery.com>
* configure.ac (CROSS directory tests): Remove the assumption that
Darwin hosts contain suitable target sysroots in "/".
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@243533 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure')
-rwxr-xr-x | gcc/configure | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/gcc/configure b/gcc/configure index b9a39d3454e..2348f091abc 100755 --- a/gcc/configure +++ b/gcc/configure @@ -12205,27 +12205,6 @@ then CROSS="-DCROSS_DIRECTORY_STRUCTURE" ALL=all.cross SYSTEM_HEADER_DIR=$build_system_header_dir - case "$host","$target" in - # Darwin crosses can use the host system's libraries and headers, - # because of the fat library support. Of course, it must be the - # same version of Darwin on both sides. Allow the user to - # just say --target=foo-darwin without a version number to mean - # "the version on this system". - *-*-darwin*,*-*-darwin*) - hostos=`echo $host | sed 's/.*-darwin/darwin/'` - targetos=`echo $target | sed 's/.*-darwin/darwin/'` - if test $hostos = $targetos -o $targetos = darwin ; then - CROSS= - SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)' - with_headers=yes - fi - ;; - - i?86-*-*,x86_64-*-* \ - | powerpc*-*-*,powerpc64*-*-*) - CROSS="$CROSS -DNATIVE_CROSS" ;; - esac - case $target in *-*-mingw*) if test "x$with_headers" = x; then @@ -18430,7 +18409,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 18433 "configure" +#line 18417 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -18536,7 +18515,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 18539 "configure" +#line 18523 "configure" #include "confdefs.h" #if HAVE_DLFCN_H |