filter-out-lto-flags
authorDebian LibreOffice Maintainers <debian-openoffice@lists.debian.org>
Thu, 23 Sep 2021 15:55:20 +0000 (16:55 +0100)
committerRene Engelhard <rene@debian.org>
Thu, 23 Sep 2021 15:55:20 +0000 (16:55 +0100)
Gbp-Pq: Name filter-out-lto-flags.diff

solenv/gbuild/platform/com_GCC_defs.mk

index c3710beede03d2305ddf7c1fea5965fd6ed93a98..06ac3fb247549edc3687a4b52cd6c2ab2e3cc0f1 100644 (file)
@@ -182,10 +182,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