From ee4b2fa8230cafafa7ce19e38793994cdae2189d Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Fri, 2 Feb 2024 20:12:44 +0000 Subject: [PATCH] extra/libreoffice-still: fix --- extra/libreoffice-still/PKGBUILD | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/extra/libreoffice-still/PKGBUILD b/extra/libreoffice-still/PKGBUILD index 3d6cc030c..0e50f3cd5 100644 --- a/extra/libreoffice-still/PKGBUILD +++ b/extra/libreoffice-still/PKGBUILD @@ -5,6 +5,7 @@ # - disable firebird until libfbclient is updated # - specify a US mirror # - remove --enable-lto from configure +# - add -D_FILE_OFFSET_BITS=64 to CPPFLAGS for v7 highmem=1 @@ -157,6 +158,7 @@ prepare() { export ARCH_FLAGS export CFLAGS="$ARCH_FLAGS" export CXXFLAGS="$ARCH_FLAGS" + export CPPFLAGS+=" -D_FILE_OFFSET_BITS=64" } build() { @@ -165,10 +167,6 @@ build() { # strip -s from Makeflags in case you use it to shorten build logs _MAKEFLAGS=${MAKEFLAGS/-s/} - # Build only minimal debug info to reduce size (~1.2GB -> ~225MB) - CFLAGS=${CFLAGS/-g /-g1 } - CXXFLAGS=${CXXFLAGS/-g /-g1 } - # this uses malloc_usable_size, which is incompatible with fortification level 3 # /usr/lib/libreoffice/program/libskialo.so uses malloc_usable_size export CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"