From 988c495c375007569a789d5c493b09b7a3f243dc Mon Sep 17 00:00:00 2001 From: Ondrej Dubaj Date: Thu, 1 Jul 2021 16:18:11 +0200 Subject: [PATCH] Enabled Z hardware-accelerated deflate for compression levels 1 through 6 Resolves: #1972057 Version: 1.2.11-28 --- zlib.spec | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/zlib.spec b/zlib.spec index 0327f63..03f5469 100644 --- a/zlib.spec +++ b/zlib.spec @@ -110,20 +110,15 @@ mv ChangeLog.tmp ChangeLog %build -export CFLAGS="$RPM_OPT_FLAGS" -%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 $MKFLAGS +%ifarch s390 s390x + ./configure --libdir=%{_libdir} --includedir=%{_includedir} --prefix=%{_prefix} --dfltcc +%else + ./configure --libdir=%{_libdir} --includedir=%{_includedir} --prefix=%{_prefix} +%endif +%make_build %if %{with minizip} cd contrib/minizip @@ -186,6 +181,7 @@ find $RPM_BUILD_ROOT -name '*.la' -delete %changelog * Thu Jun 03 2021 Patrik Novotný - 1.2.11-28 - IBM CRC32 optimalization rhbz#1959423 +- Enabled Z hardware-accelerated deflate for compression levels 1 through 6 (#1972057) * Fri Apr 16 2021 Mohan Boddu - 1.2.11-27 - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937