Added -DDFLTCC parameter to configure to enable Z hardware-accelerated deflate for s390x architectures

This commit is contained in:
Ondrej Dubaj 2019-10-29 13:30:42 +01:00
parent c917e2413d
commit 700aa10337

View File

@ -2,7 +2,7 @@
Name: zlib
Version: 1.2.11
Release: 19%{?dist}
Release: 20%{?dist}
Summary: The compression and decompression library
# /contrib/dotzlib/ have Boost license
License: zlib and Boost
@ -102,11 +102,19 @@ CFLAGS+=" -O3"
%ifarch aarch64
CFLAGS+=" -DARM_NEON -O3"
%endif
%ifarch s390 s390x
CFLAGS+=" -DDFLTCC"
%endif
export MKFLAGS=""
%ifarch s390 s390x
MKFLAGS+="OBJA=dfltcc.o PIC_OBJA=dfltcc.lo"
%endif
export LDFLAGS="$LDFLAGS -Wl,-z,relro -Wl,-z,now"
# no-autotools, %%configure is not compatible
./configure --libdir=%{_libdir} --includedir=%{_includedir} --prefix=%{_prefix}
%make_build
%make_build $MKFLAGS
%if %{with minizip}
cd contrib/minizip
@ -167,6 +175,10 @@ find $RPM_BUILD_ROOT -name '*.la' -delete
%changelog
* Tue Oct 29 2019 Ondrej Dubaj <odubaj@redhat.com> - 1.2.11-20
- Added -DDFLTCC parameter to configure to enable
- Z hardware-accelerated deflate for s390x architectures
* Thu Sep 05 2019 Ondrej Dubaj <odubaj@redhat.com> - 1.2.11-19
- IBM CRC32 optimalization for POWER 8+ architectures re-add
- fixed firefox crash duer to zlib (#1741266)