From 3bfe04e7a5cd44b2fd3cdc3356e1aaff3dd240dd Mon Sep 17 00:00:00 2001 From: David Tardon Date: Mon, 20 Apr 2015 12:52:51 +0200 Subject: [PATCH] fix memory exhaustion on link on s390 --- libreoffice.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libreoffice.spec b/libreoffice.spec index 1bb9fc2..222fa50 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -1160,6 +1160,10 @@ for i in $RPM_OPT_FLAGS; do esac ARCH_FLAGS="$ARCH_FLAGS $i" done +%ifarch s390 +# s390 builders do not have enough memory to link the big libs with -g2 +ARCH_FLAGS="$ARCH_FLAGS -g1" +%endif export ARCH_FLAGS export CFLAGS=$ARCH_FLAGS export CXXFLAGS=$ARCH_FLAGS