compile zlib with -O3 on ppc64

This commit is contained in:
jchaloup 2014-02-12 11:11:30 +01:00
parent dd27fb23b9
commit 85b88a2dad

View File

@ -1,7 +1,7 @@
Summary: The compression and decompression library
Name: zlib
Version: 1.2.8
Release: 3%{?dist}
Release: 4%{?dist}
# /contrib/dotzlib/ have Boost license
License: zlib and Boost
Group: System Environment/Libraries
@ -74,7 +74,15 @@ iconv -f iso-8859-2 -t utf-8 < ChangeLog > ChangeLog.tmp
mv ChangeLog.tmp ChangeLog
%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"
%endif
export LDFLAGS="$LDFLAGS -Wl,-z,relro"
./configure --libdir=%{_libdir} --includedir=%{_includedir} --prefix=%{_prefix}
make %{?_smp_mflags}
@ -130,6 +138,10 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%{_libdir}/pkgconfig/minizip.pc
%changelog
* Wed Feb 12 2014 jchaloup <jchaloup@redhat.com> - 1.2.8-4
- resolves: #1064213
recompiled with -O3 flag for ppc64 arch
* Sat Aug 10 2013 Kalev Lember <kalevlember@gmail.com> - 1.2.8-3
- resolves: #985344
add a patch to fix missing minizip include