aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-03-03 15:47:19 +0100
committerMartin Liska <mliska@suse.cz>2022-03-03 15:47:19 +0100
commite81cbab6195a4217703824d7e5733f118afab3bb (patch)
tree68dd9345a3a3b575bbd5ed9eb0518f4660de9e88
parent88c4d85e27e18bf991ab8728b73127a0385f2c27 (diff)
downloadgcc-e81cbab6195a4217703824d7e5733f118afab3bb.zip
gcc-e81cbab6195a4217703824d7e5733f118afab3bb.tar.gz
gcc-e81cbab6195a4217703824d7e5733f118afab3bb.tar.bz2
configure: enable plugin support for ld.mold
gcc/ChangeLog: * configure.ac: Now ld.mold support LTO plugin API, use it. * configure: Regenerate.
-rwxr-xr-xgcc/configure2
-rw-r--r--gcc/configure.ac2
2 files changed, 4 insertions, 0 deletions
diff --git a/gcc/configure b/gcc/configure
index 22eb345..6f5fc20 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -26037,6 +26037,8 @@ if test -f liblto_plugin.la; then
# Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
gcc_cv_lto_plugin=1
+ elif test "$ld_is_mold" = yes; then
+ gcc_cv_lto_plugin=1
fi
fi
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 20da909..3d85d33 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -4278,6 +4278,8 @@ changequote([,])dnl
# Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
gcc_cv_lto_plugin=1
+ elif test "$ld_is_mold" = yes; then
+ gcc_cv_lto_plugin=1
fi
fi