spec: simplify -O3 hack for ppc64
Version: 1.2.11-2
This commit is contained in:
parent
890498eba0
commit
9f014e3002
10
zlib.spec
10
zlib.spec
@ -69,14 +69,9 @@ iconv -f iso-8859-2 -t utf-8 < ChangeLog > ChangeLog.tmp
|
|||||||
mv ChangeLog.tmp ChangeLog
|
mv ChangeLog.tmp ChangeLog
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if 0%{?rhel} >= 7
|
|
||||||
%ifarch ppc64
|
|
||||||
export CFLAGS="$RPM_OPT_FLAGS -O3"
|
|
||||||
%else
|
|
||||||
export CFLAGS="$RPM_OPT_FLAGS"
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
export CFLAGS="$RPM_OPT_FLAGS"
|
export CFLAGS="$RPM_OPT_FLAGS"
|
||||||
|
%ifarch ppc64
|
||||||
|
CFLAGS+=" -O3"
|
||||||
%endif
|
%endif
|
||||||
export LDFLAGS="$LDFLAGS -Wl,-z,relro -Wl,-z,now"
|
export LDFLAGS="$LDFLAGS -Wl,-z,relro -Wl,-z,now"
|
||||||
./configure --libdir=%{_libdir} --includedir=%{_includedir} --prefix=%{_prefix}
|
./configure --libdir=%{_libdir} --includedir=%{_includedir} --prefix=%{_prefix}
|
||||||
@ -140,6 +135,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|||||||
%changelog
|
%changelog
|
||||||
* Thu Feb 09 2017 Pavel Raiskup <praiskup@redhat.com> - 1.2.11-2
|
* Thu Feb 09 2017 Pavel Raiskup <praiskup@redhat.com> - 1.2.11-2
|
||||||
- fix s390(x) optimizing patch (FTBFS on s390(x))
|
- 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
|
* Mon Jan 30 2017 Pavel Raiskup <praiskup@redhat.com> - 1.2.11-1
|
||||||
- latest upstream release (rhbz#1409372)
|
- latest upstream release (rhbz#1409372)
|
||||||
|
Loading…
Reference in New Issue
Block a user