This commit is contained in:
parent
d78414383d
commit
ad9eb7a4c1
14
zlib.spec
14
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}
|
||||
|
Loading…
Reference in New Issue
Block a user