fix memory exhaustion on link on s390

This commit is contained in:
David Tardon 2015-04-20 12:52:51 +02:00
parent 1db6f6a61a
commit 3bfe04e7a5

View File

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