spec: simplify -O3 hack for ppc64

Version: 1.2.11-2
This commit is contained in:
Pavel Raiskup 2017-02-09 15:03:06 +01:00
parent 890498eba0
commit 9f014e3002

View File

@ -69,14 +69,9 @@ iconv -f iso-8859-2 -t utf-8 < ChangeLog > ChangeLog.tmp
mv ChangeLog.tmp ChangeLog
%build
%if 0%{?rhel} >= 7
export CFLAGS="$RPM_OPT_FLAGS"
%ifarch ppc64
export CFLAGS="$RPM_OPT_FLAGS -O3"
%else
export CFLAGS="$RPM_OPT_FLAGS"
%endif
%else
export CFLAGS="$RPM_OPT_FLAGS"
CFLAGS+=" -O3"
%endif
export LDFLAGS="$LDFLAGS -Wl,-z,relro -Wl,-z,now"
./configure --libdir=%{_libdir} --includedir=%{_includedir} --prefix=%{_prefix}
@ -140,6 +135,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%changelog
* Thu Feb 09 2017 Pavel Raiskup <praiskup@redhat.com> - 1.2.11-2
- fix s390(x) optimizing patch (FTBFS on s390(x))
- simplify ppc64 hack with -O3
* Mon Jan 30 2017 Pavel Raiskup <praiskup@redhat.com> - 1.2.11-1
- latest upstream release (rhbz#1409372)