From b04dec1d217a82985e5d8e47fc2c305900ae68d7 Mon Sep 17 00:00:00 2001 From: Evan Klitzke Date: Sun, 8 Nov 2020 11:46:30 -0800 Subject: [PATCH] Stop using legacy -ffat-lto-objects option in LTO builds This change stops using the -ffat-lto-objects flag with GCC for builds that use --enable-link-time-optimization. This option was originally added to support GCC 4.9 which is very old, and makes compiling LTO builds on modern versions of GCC significantly slower. --- configure.ac | 7 ------- 1 file changed, 7 deletions(-) diff --git a/configure.ac b/configure.ac index f0c8e5210f..71a931da9e 100644 --- a/configure.ac +++ b/configure.ac @@ -1171,13 +1171,6 @@ AC_DEFUN # command, so plugin name is appended to ARFLAGS. ARFLAGS="cru --plugin $GOLD_PLUGIN" RANLIB="$RANLIB --plugin $GOLD_PLUGIN" - else - dnl The following is needed for GCC 4.9.0. The GCC 4.9.0 release notes - dnl suggest that instead of -ffat-lto-objects we should use gcc-ar and - dnl gcc-ranlib in place of ar and ranlib, but gcc-ar makes /usr/bin/ar - dnl dump core on Fedora 20, so play it safe for now. - gl_COMPILER_OPTION_IF([-ffat-lto-objects], - [CFLAGS="$CFLAGS -ffat-lto-objects"]) fi fi fi) -- 2.28.0