From cd34eaa2c5bccc5cc67e5e7105fd60279edf4df6 Mon Sep 17 00:00:00 2001 From: Le Philousophe Date: Sun, 10 Jan 2021 11:35:04 +0100 Subject: [PATCH] VITA: Use make jobserver to control how many jobs linker can use -flto=jobserver is present in GCC since version 7 at least --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 2a3d06f52e9..1c11c962d43 100755 --- a/configure +++ b/configure @@ -3145,8 +3145,8 @@ EOF append_var CXXFLAGS "-mword-relocations" append_var CXXFLAGS "-fomit-frame-pointer" #use link time optimization to further reduce exe size - append_var CXXFLAGS "-flto=20" - append_var LDFLAGS "-flto=20" + append_var CXXFLAGS "-flto" + append_var LDFLAGS "-flto=jobserver" #ensure verbose output during linking to prevent buildbot kills after 1200 seconds if test "$_verbose_build" = yes ; then append_var LDFLAGS "-Wl,-v --verbose"