SHA256
1
0
forked from pool/zlib
Tomáš Chvátal 2019-06-06 09:59:27 +00:00 committed by Git OBS Bridge
parent d78414383d
commit ad9eb7a4c1

View File

@ -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}