The package rpms/zlib.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/zlib.git/commit/?id=700aa1033774e....
Change:
+%ifarch s390 s390x
Thanks.
Full change:
============
commit 700aa1033774e6acee372f2c9e4a6ea0652abe38
Author: Ondrej Dubaj <odubaj(a)redhat.com>
Date: Tue Oct 29 13:30:42 2019 +0100
Added -DDFLTCC parameter to configure to enable Z hardware-accelerated deflate for
s390x architectures
diff --git a/zlib.spec b/zlib.spec
index 327915a..0f4e08c 100644
--- a/zlib.spec
+++ b/zlib.spec
@@ -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(a)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(a)redhat.com> - 1.2.11-19
- IBM CRC32 optimalization for POWER 8+ architectures re-add
- fixed firefox crash duer to zlib (#1741266)