filter-out-lto-flags
authorDebian LibreOffice Maintainers <debian-openoffice@lists.debian.org>
Wed, 18 Aug 2021 06:56:00 +0000 (07:56 +0100)
committerRene Engelhard <rene@debian.org>
Wed, 18 Aug 2021 06:56:00 +0000 (07:56 +0100)
Gbp-Pq: Name filter-out-lto-flags.diff

solenv/gbuild/platform/com_GCC_defs.mk

index cbb9b2df43fc8640ce7ac47a087ae9212e64e06d..ad341ba657b69da15e2efd06eab4e3548a15333e 100644 (file)
@@ -180,10 +180,12 @@ gb_LTOFLAGS := -flto
 gb_LTOPLUGINFLAGS := --plugin LLVMgold.so
 endif
 else
-gb_LTOFLAGS := -flto$(if $(filter-out 0,$(PARALLELISM)),=$(PARALLELISM)) -fuse-linker-plugin -O2
+gb_LTOFLAGS := -flto=auto -ffat-lto-objects
 endif
 endif
 
+gb_FilterOutClangCFLAGS += -flto=auto -ffat-lto-objects
+
 gb_LinkTarget_EXCEPTIONFLAGS := \
        -DEXCEPTIONS_ON \
        -fexceptions