Date: Saturday, January 8, 2022 @ 10:05:44
  Author: foutrelis
Revision: 433866

Use parallel link-time optimization

Modified:
  libreoffice-still/trunk/PKGBUILD

----------+
 PKGBUILD |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-01-08 10:01:47 UTC (rev 433865)
+++ PKGBUILD    2022-01-08 10:05:44 UTC (rev 433866)
@@ -34,7 +34,7 @@
        'libepubgen' 'libfreehand' 'libqxp' 'libstaroffice'  'boost' 
'libnumbertext'
        'libffi' 'box2d' 'git'
 )
-
+options=('!lto') # using --enable-lto (for parallel link-time optimization)
 _mirror="https://download.documentfoundation.org/libreoffice/src/${pkgver}";
 #_mirror="https://dev-builds.libreoffice.org/pre-releases/src";
 _additional_source_url="https://dev-www.libreoffice.org/src";
@@ -160,9 +160,6 @@
        # 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 \
@@ -183,6 +180,7 @@
                --enable-qt5 \
                --enable-gtk3 \
                --enable-introspection \
+               --enable-lto \
                --enable-openssl \
                --enable-odk\
                --enable-python=system \

Reply via email to