From ad9eb7a4c1ad3b2be7646f8d59a1a6a2a288277b747fc10c391e1f25aa009aba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 6 Jun 2019 09:59:27 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/zlib?expand=0&rev=54 --- zlib.spec | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/zlib.spec b/zlib.spec index d2b067b..2e473cf 100644 --- a/zlib.spec +++ b/zlib.spec @@ -127,7 +127,13 @@ developing applications which use minizip. %build export LDFLAGS="-Wl,-z,relro,-z,now" +%ifarch s390 s390x +export CFLAGS="%{optflags} -DDFLTCC" +%define addopts OBJA=dfltcc.o PIC_OBJA=dfltcc.lo +%else export CFLAGS="%{optflags}" +%define addopts %{nil} +%endif # For sure not autotools build CC="cc" ./configure \ --shared \ @@ -135,12 +141,12 @@ CC="cc" ./configure \ --libdir=/%{_lib} %if %{do_profiling} - make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}" + make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}" %{addopts} make check %{?_smp_mflags} make clean - make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_feedback}" + make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_feedback}" %{addopts} %else - make %{?_smp_mflags} + make %{?_smp_mflags} %{addopts} %endif # And build minizip @@ -149,7 +155,7 @@ autoreconf -fvi %configure \ --disable-static \ --disable-silent-rules -make %{?_smp_mflags} +make %{?_smp_mflags} %{addopts} %check make check %{?_smp_mflags}