From: Martin Liska Date: Thu, 3 Mar 2022 14:47:19 +0000 (+0100) Subject: configure: enable plugin support for ld.mold X-Git-Tag: basepoints/gcc-13~848 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e81cbab6195a4217703824d7e5733f118afab3bb;p=thirdparty%2Fgcc.git configure: enable plugin support for ld.mold gcc/ChangeLog: * configure.ac: Now ld.mold support LTO plugin API, use it. * configure: Regenerate. --- diff --git a/gcc/configure b/gcc/configure index 22eb3451e3dc..6f5fc20fcf33 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 20da90901f8f..3d85d33bc805 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