configure: enable plugin support for ld.mold
authorMartin Liska <mliska@suse.cz>
Thu, 3 Mar 2022 14:47:19 +0000 (15:47 +0100)
committerMartin Liska <mliska@suse.cz>
Thu, 3 Mar 2022 14:47:19 +0000 (15:47 +0100)
gcc/ChangeLog:

* configure.ac: Now ld.mold support LTO plugin API, use it.
* configure: Regenerate.

gcc/configure
gcc/configure.ac

index 22eb345..6f5fc20 100755 (executable)
@@ -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
 
index 20da909..3d85d33 100644 (file)
@@ -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