summaryrefslogtreecommitdiffstats
path: root/libatomic
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2020-11-18 10:06:03 +0000
committerIain Sandoe <iain@sandoe.co.uk>2020-12-05 08:43:20 +0000
commit1352bc88a0525743c952197fb2db6e4f8c091cde (patch)
tree06207e8cc7971e67177cda013cacc9a764abfe3c /libatomic
parentX86_64: Enable support for next generation AMD Zen3 CPU. (diff)
downloadgcc-1352bc88a0525743c952197fb2db6e4f8c091cde.tar.gz
gcc-1352bc88a0525743c952197fb2db6e4f8c091cde.tar.bz2
gcc-1352bc88a0525743c952197fb2db6e4f8c091cde.tar.xz
Darwin : Update libtool and dependencies for Darwin20 [PR97865]
The change in major version (and the increment from Darwin19 to 20) caused libtool tests to fail which resulted in incorrect build settings for shared libraries. We take this opportunity to sort out the shared undefined symbols state rather than propagating the current unsound behaviour into a new rev. This change means that we default to the case that missing symbols are considered an error, and if one wants to allow this intentionally, the confiuration for that case should be set appropriately. Three existing cases need undefined dynamic lookup: libitm, where there is already a configuration mechanism to add the flags. libcc1, where we add simple configuration to add the flags for Darwin. libsanitizer, where we can add to the existing extra flags. libcc1/ChangeLog: PR target/97865 * Makefile.am: Add dynamic_lookup to LD flags for Darwin. * configure.ac: Test for Darwin host and set a flag. * Makefile.in: Regenerate. * configure: Regenerate. libitm/ChangeLog: PR target/97865 * configure.tgt: Add dynamic_lookup to XLDFLAGS for Darwin. * configure: Regenerate. libsanitizer/ChangeLog: PR target/97865 * configure.tgt: Add dynamic_lookup to EXTRA_CXXFLAGS for Darwin. * configure: Regenerate. ChangeLog: PR target/97865 * libtool.m4: Update handling of Darwin platform link flags for Darwin20. gcc/ChangeLog: PR target/97865 * configure: Regenerate. libatomic/ChangeLog: PR target/97865 * configure: Regenerate. libbacktrace/ChangeLog: PR target/97865 * configure: Regenerate. libffi/ChangeLog: PR target/97865 * configure: Regenerate. libgfortran/ChangeLog: PR target/97865 * configure: Regenerate. libgomp/ChangeLog: PR target/97865 * configure: Regenerate. libhsail-rt/ChangeLog: PR target/97865 * configure: Regenerate. libobjc/ChangeLog: PR target/97865 * configure: Regenerate. libphobos/ChangeLog: PR target/97865 * configure: Regenerate. libquadmath/ChangeLog: PR target/97865 * configure: Regenerate. libssp/ChangeLog: PR target/97865 * configure: Regenerate. libstdc++-v3/ChangeLog: PR target/97865 * configure: Regenerate. libvtv/ChangeLog: PR target/97865 * configure: Regenerate. zlib/ChangeLog: PR target/97865 * configure: Regenerate.
Diffstat (limited to 'libatomic')
-rwxr-xr-xlibatomic/configure34
1 files changed, 18 insertions, 16 deletions
diff --git a/libatomic/configure b/libatomic/configure
index 5fd4ea364c0..50fe5480b78 100755
--- a/libatomic/configure
+++ b/libatomic/configure
@@ -7590,23 +7590,25 @@ _LT_EOF
7590fi 7590fi
7591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7592$as_echo "$lt_cv_ld_force_load" >&6; } 7592$as_echo "$lt_cv_ld_force_load" >&6; }
7593 case $host_os in 7593 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7594 rhapsody* | darwin1.[012]) 7594 # build without first building modern cctools / linker.
7595 case $host_cpu-$host_os in
7596 *-rhapsody* | *-darwin1.[012])
7595 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7597 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7596 darwin1.*) 7598 *-darwin1.*)
7597 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7599 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7598 darwin*) # darwin 5.x on 7600 *-darwin*)
7599 # if running on 10.5 or later, the deployment target defaults 7601 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7600 # to the OS version, if on x86, and 10.4, the deployment 7602 # deployment target is forced to an earlier version.
7601 # target defaults to 10.4. Don't you love it? 7603 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7602 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7604 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7603 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7605 ;;
7604 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7605 10.[012][,.]*) 7606 10.[012][,.]*)
7606 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7607 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7607 10.*) 7608 ;;
7608 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7609 *)
7609 esac 7610 ;;
7611 esac
7610 ;; 7612 ;;
7611 esac 7613 esac
7612 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7614 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
@@ -11388,7 +11390,7 @@ else
11388 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11390 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11389 lt_status=$lt_dlunknown 11391 lt_status=$lt_dlunknown
11390 cat > conftest.$ac_ext <<_LT_EOF 11392 cat > conftest.$ac_ext <<_LT_EOF
11391#line 11391 "configure" 11393#line 11393 "configure"
11392#include "confdefs.h" 11394#include "confdefs.h"
11393 11395
11394#if HAVE_DLFCN_H 11396#if HAVE_DLFCN_H
@@ -11494,7 +11496,7 @@ else
11494 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11496 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11495 lt_status=$lt_dlunknown 11497 lt_status=$lt_dlunknown
11496 cat > conftest.$ac_ext <<_LT_EOF 11498 cat > conftest.$ac_ext <<_LT_EOF
11497#line 11497 "configure" 11499#line 11499 "configure"
11498#include "confdefs.h" 11500#include "confdefs.h"
11499 11501
11500#if HAVE_DLFCN_H 11502#if HAVE_DLFCN_H