Accepting request 1042314 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1042314 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/zlib?expand=0&rev=85
This commit is contained in:
commit
c4c769e769
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Dec 11 16:41:51 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- build zlib with optflags again
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Oct 10 10:08:02 UTC 2022 - Danilo Spinella <danilo.spinella@suse.com>
|
Mon Oct 10 10:08:02 UTC 2022 - Danilo Spinella <danilo.spinella@suse.com>
|
||||||
|
|
||||||
|
16
zlib.spec
16
zlib.spec
@ -164,7 +164,7 @@ cp %{SOURCE4} .
|
|||||||
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
||||||
export LDFLAGS="-Wl,-z,relro,-z,now"
|
export LDFLAGS="-Wl,-z,relro,-z,now"
|
||||||
# For sure not autotools build
|
# For sure not autotools build
|
||||||
CC="cc" ./configure \
|
CC="cc" CFLAGS="%{optflags}" ./configure \
|
||||||
--shared \
|
--shared \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
@ -177,12 +177,12 @@ CC="cc" ./configure \
|
|||||||
# Profiling flags breaks tests, as of 1.2.12
|
# Profiling flags breaks tests, as of 1.2.12
|
||||||
# In particular, gzseek does not work as intended
|
# In particular, gzseek does not work as intended
|
||||||
#%if %{do_profiling}
|
#%if %{do_profiling}
|
||||||
# make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}"
|
# %make_build CFLAGS="%{optflags} %{cflags_profile_generate}"
|
||||||
# make check %{?_smp_mflags}
|
# %make_build check
|
||||||
# make %{?_smp_mflags} clean
|
# %make_build clean
|
||||||
# make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_feedback}"
|
# %make_build %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_feedback}"
|
||||||
#%else
|
#%else
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
#%endif
|
#%endif
|
||||||
|
|
||||||
# And build minizip
|
# And build minizip
|
||||||
@ -191,10 +191,10 @@ autoreconf -fvi
|
|||||||
%configure \
|
%configure \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--disable-silent-rules
|
--disable-silent-rules
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check %{?_smp_mflags}
|
%make_build check
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{_libdir}
|
mkdir -p %{buildroot}%{_libdir}
|
||||||
|
Loading…
Reference in New Issue
Block a user