diff options
author | Martin Liska <mliska@suse.cz> | 2022-01-21 17:10:07 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2022-01-31 09:46:44 +0100 |
commit | c99a6eb01536d18e700a3c6935714a0fa0c96340 (patch) | |
tree | e4be1bab051d6cc0578a1a0ad18f43c37fb76d6b /libatomic | |
parent | 625f16c798757dcbfdded841f01d7c566d15c55c (diff) | |
download | gcc-c99a6eb01536d18e700a3c6935714a0fa0c96340.zip gcc-c99a6eb01536d18e700a3c6935714a0fa0c96340.tar.gz gcc-c99a6eb01536d18e700a3c6935714a0fa0c96340.tar.bz2 |
Add mold detection for libs.
libatomic/ChangeLog:
* acinclude.m4: Detect *_ld_is_mold and use it.
* configure: Regenerate.
libgomp/ChangeLog:
* acinclude.m4: Detect *_ld_is_mold and use it.
* configure: Regenerate.
libitm/ChangeLog:
* acinclude.m4: Detect *_ld_is_mold and use it.
* configure: Regenerate.
libstdc++-v3/ChangeLog:
* acinclude.m4: Detect *_ld_is_mold and use it.
* configure: Regenerate.
Diffstat (limited to 'libatomic')
-rw-r--r-- | libatomic/acinclude.m4 | 6 | ||||
-rwxr-xr-x | libatomic/configure | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/libatomic/acinclude.m4 b/libatomic/acinclude.m4 index 3703a43..f35ab5b 100644 --- a/libatomic/acinclude.m4 +++ b/libatomic/acinclude.m4 @@ -299,6 +299,7 @@ dnl LD (as a side effect of testing) dnl Sets: dnl with_gnu_ld dnl libat_ld_is_gold (possibly) +dnl libat_ld_is_mold (possibly) dnl libat_gnu_ld_version (possibly) dnl dnl The last will be a single integer, e.g., version 1.23.45.0.67.89 will @@ -331,8 +332,11 @@ AC_DEFUN([LIBAT_CHECK_LINKER_FEATURES], [ # Start by getting the version number. I think the libtool test already # does some of this, but throws away the result. libat_ld_is_gold=no + libat_ld_is_mold=no if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then libat_ld_is_gold=yes + elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then + libat_ld_is_mold=yes fi changequote(,) ldver=`$LD --version 2>/dev/null | @@ -488,6 +492,8 @@ if test $enable_symvers != no && test $libat_shared_libgcc = yes; then enable_symvers=gnu elif test $libat_ld_is_gold = yes ; then enable_symvers=gnu + elif test $libat_ld_is_mold = yes ; then + enable_symvers=gnu else # The right tools, the right setup, but too old. Fallbacks? AC_MSG_WARN(=== Linker version $libat_gnu_ld_version is too old for) diff --git a/libatomic/configure b/libatomic/configure index fb920c9..34434d2 100755 --- a/libatomic/configure +++ b/libatomic/configure @@ -15197,8 +15197,11 @@ with_gnu_ld=$lt_cv_prog_gnu_ld # Start by getting the version number. I think the libtool test already # does some of this, but throws away the result. libat_ld_is_gold=no + libat_ld_is_mold=no if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then libat_ld_is_gold=yes + elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then + libat_ld_is_mold=yes fi ldver=`$LD --version 2>/dev/null | @@ -15401,6 +15404,8 @@ if test $enable_symvers != no && test $libat_shared_libgcc = yes; then enable_symvers=gnu elif test $libat_ld_is_gold = yes ; then enable_symvers=gnu + elif test $libat_ld_is_mold = yes ; then + enable_symvers=gnu else # The right tools, the right setup, but too old. Fallbacks? { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5 |