extra/libreoffice-still: fix

This commit is contained in:
Kevin Mihelich 2024-02-02 20:12:44 +00:00
parent ef56cc63c1
commit ee4b2fa823

View file

@ -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}"