SHA256
3
0
forked from pool/cmake

Accepting request 967822 from devel:tools:building

- speed up build of :mini flavor by using external zstd (part of 0-Bootstrap)
  and turn off LTO

OBS-URL: https://build.opensuse.org/request/show/967822
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cmake?expand=0&rev=214
This commit is contained in:
Dominique Leuenberger 2022-04-10 17:05:13 +00:00 committed by Git OBS Bridge
commit 6ddbe84454
2 changed files with 15 additions and 5 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Apr 8 11:48:04 UTC 2022 - Dirk Müller <dmueller@suse.com>
- speed up build of :mini flavor by using external zstd (part of 0-Bootstrap)
and turn off LTO
-------------------------------------------------------------------
Tue Mar 29 19:18:02 UTC 2022 - Christoph G <foss@grueninger.de>

View File

@ -75,6 +75,7 @@ BuildRequires: pkgconfig(libssl)
%if %{suse_version} > 1500
BuildRequires: pkgconfig(libuv) >= 1.28
%endif
BuildRequires: pkgconfig(libzstd)
BuildRequires: pkgconfig(ncurses)
BuildRequires: pkgconfig(zlib)
%if "%{flavor}" == ""
@ -94,7 +95,6 @@ Requires: this-is-only-for-build-envs
BuildRequires: pkgconfig(jsoncpp) >= 1.4.1
BuildRequires: pkgconfig(libarchive) >= 3.3.3
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libzstd)
%endif
%if %{with gui}
BuildRequires: python3-Sphinx
@ -136,10 +136,15 @@ echo "`grep cmake-%{version}.tar.gz %{SOURCE5} | grep -Eo '^[0-9a-f]+'` %{SOURC
%autosetup -p1 -n cmake-%{version}
%build
cp %{SOURCE99} .
%if "%{flavor}" != ""
cp -p %{SOURCE99} .
%if %{with mini}
# this is serial, so it takes too much time for the mini package
%define _find_debuginfo_dwz_opts %{nil}
%define _lto_cflags %{nil}
%endif
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
export CXXFLAGS="$CFLAGS"
%if "%{flavor}" != ""
# This is not autotools configure
./configure \
--prefix=%{_prefix} \
@ -152,7 +157,6 @@ export CXXFLAGS="%{optflags}"
--no-system-nghttp2 \
--no-system-jsoncpp \
--no-system-libarchive \
--no-system-zstd \
%endif
--parallel=0%{jobs} \
--verbose \