diff options
author | Martin Liska <mliska@suse.cz> | 2022-03-03 17:28:45 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2022-03-03 17:31:08 +0100 |
commit | c083e654bd0f29a365ec957c4c0d4e713fb0b010 (patch) | |
tree | df6ae215a91dd2671e5681b42ec1db0ac89ff3be | |
parent | e81cbab6195a4217703824d7e5733f118afab3bb (diff) | |
download | gcc-c083e654bd0f29a365ec957c4c0d4e713fb0b010.zip gcc-c083e654bd0f29a365ec957c4c0d4e713fb0b010.tar.gz gcc-c083e654bd0f29a365ec957c4c0d4e713fb0b010.tar.bz2 |
configure: use linker plug-in by default for ld.mold
gcc/ChangeLog:
* configure.ac: Use linker plug-in by default.
* configure: Regenerate.
-rwxr-xr-x | gcc/configure | 4 | ||||
-rw-r--r-- | gcc/configure.ac | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gcc/configure b/gcc/configure index 6f5fc20..14b19c8 100755 --- a/gcc/configure +++ b/gcc/configure @@ -26034,11 +26034,11 @@ if test -f liblto_plugin.la; then # Require GNU ld or gold 2.21+ for plugin support by default. if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then gcc_cv_lto_plugin=2 + elif test "$ld_is_mold" = yes; then + gcc_cv_lto_plugin=2 # 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 3d85d33..90cad30 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -4275,11 +4275,11 @@ changequote([,])dnl # Require GNU ld or gold 2.21+ for plugin support by default. if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then gcc_cv_lto_plugin=2 + elif test "$ld_is_mold" = yes; then + gcc_cv_lto_plugin=2 # 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 |