summaryrefslogtreecommitdiff
path: root/libgomp/configure
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-01-21 17:10:07 +0100
committerMartin Liska <mliska@suse.cz>2022-01-31 09:46:44 +0100
commitc99a6eb01536d18e700a3c6935714a0fa0c96340 (patch)
treee4be1bab051d6cc0578a1a0ad18f43c37fb76d6b /libgomp/configure
parent625f16c798757dcbfdded841f01d7c566d15c55c (diff)
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 'libgomp/configure')
-rwxr-xr-xlibgomp/configure7
1 files changed, 6 insertions, 1 deletions
diff --git a/libgomp/configure b/libgomp/configure
index 4bc9b381c5c..37390ce5d66 100755
--- a/libgomp/configure
+++ b/libgomp/configure
@@ -15037,7 +15037,7 @@ _ACEOF
# Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
#
-# Copyright (C) 2014-2021 Free Software Foundation, Inc.
+# Copyright (C) 2014-2022 Free Software Foundation, Inc.
#
# Contributed by Mentor Embedded.
#
@@ -16231,8 +16231,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.
libgomp_ld_is_gold=no
+ libgomp_ld_is_mold=no
if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
libgomp_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 |
@@ -16435,6 +16438,8 @@ if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
enable_symvers=gnu
elif test $libgomp_ld_is_gold = yes ; then
enable_symvers=gnu
+ elif test $libgomp_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 $libgomp_gnu_ld_version is too old for" >&5