git » libreoffice-still.git » commit 7842c60

rebuild to enablte LTO

author Andreas Radke
2022-01-07 19:01:15 UTC
committer Andreas Radke
2022-01-07 19:01:15 UTC
parent 5657e5900db8c8891b040d8b652c21705e5096ec

rebuild to enablte LTO

PKGBUILD +4 -1

diff --git a/PKGBUILD b/PKGBUILD
index f0daaed..297b77d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,7 +12,7 @@ pkgbase=libreoffice-still
 pkgname=('libreoffice-still-sdk' 'libreoffice-still')
 _LOver=7.1.8.1
 pkgver=7.1.8
-pkgrel=4
+pkgrel=5
 arch=('x86_64')
 license=('LGPL3')
 url="https://www.libreoffice.org/"
@@ -160,6 +160,9 @@ build() {
 	# http://site.icu-project.org/download/61#TOC-Migration-Issues
 	CPPFLAGS+=' -DU_USING_ICU_NAMESPACE=1'
 
+	# lto
+	export CFLAGS+=" -ffat-lto-objects"; export CXXFLAGS+=" -ffat-lto-objects"
+
 	./autogen.sh --with-extra-buildid="${pkgver}-${pkgrel}" \
 		--with-vendor="Arch Linux" \
 		--enable-split-app-modules \