Drop -O3 for ppc* to work-around FTBFS with gcc 8.0

Related: rhbz#1544349
Version: 10.3-1
This commit is contained in:
Pavel Raiskup 2018-03-01 18:04:31 +01:00
parent 0948580a64
commit d1c05385d1

View File

@ -412,7 +412,7 @@ cd ..
CFLAGS="${CFLAGS:-%optflags}"
%ifarch %{power64}
# See the bug #1051075, ppc64 should benefit from -O3
CFLAGS=`echo $CFLAGS | xargs -n 1 | sed 's|-O2|-O3|g' | xargs -n 100`
# CFLAGS=`echo $CFLAGS | xargs -n 1 | sed 's|-O2|-O3|g' | xargs -n 100`
%endif
# Strip out -ffast-math from CFLAGS....
CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100`