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
|
%build
|
||||||
export LDFLAGS="-Wl,-z,relro,-z,now"
|
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}"
|
export CFLAGS="%{optflags}"
|
||||||
|
%define addopts %{nil}
|
||||||
|
%endif
|
||||||
# For sure not autotools build
|
# For sure not autotools build
|
||||||
CC="cc" ./configure \
|
CC="cc" ./configure \
|
||||||
--shared \
|
--shared \
|
||||||
@ -135,12 +141,12 @@ CC="cc" ./configure \
|
|||||||
--libdir=/%{_lib}
|
--libdir=/%{_lib}
|
||||||
|
|
||||||
%if %{do_profiling}
|
%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 check %{?_smp_mflags}
|
||||||
make clean
|
make clean
|
||||||
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_feedback}"
|
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_feedback}" %{addopts}
|
||||||
%else
|
%else
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags} %{addopts}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# And build minizip
|
# And build minizip
|
||||||
@ -149,7 +155,7 @@ autoreconf -fvi
|
|||||||
%configure \
|
%configure \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--disable-silent-rules
|
--disable-silent-rules
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags} %{addopts}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check %{?_smp_mflags}
|
make check %{?_smp_mflags}
|
||||||
|
Loading…
Reference in New Issue
Block a user