Fix package build
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/mold?expand=0&rev=114
This commit is contained in:
parent
51ef3757f3
commit
8bf5ea8229
@ -50,8 +50,8 @@ BuildRequires: zlib-devel
|
||||
BuildRequires: zstd
|
||||
PreReq: update-alternatives
|
||||
|
||||
%if %{suse_version} < 1550
|
||||
%define build_args -DMOLD_USE_MIMALLOC=OFF -DMOLD_USE_MIMALLOC=OFF
|
||||
%if %{suse_version} < 1600
|
||||
%define build_args -DMOLD_USE_MIMALLOC=OFF -DMOLD_USE_MIMALLOC=OFF -DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name}
|
||||
%else
|
||||
%define build_args -DMOLD_USE_MIMALLOC=OFF -DMOLD_USE_MIMALLOC=OFF -DMOLD_USE_SYSTEM_TBB=ON
|
||||
%endif
|
||||
@ -71,10 +71,7 @@ build time especially in rapid debug-edit-rebuild cycles.
|
||||
export CC=gcc-11
|
||||
export CXX=g++-11
|
||||
%endif
|
||||
%cmake %{build_args} \
|
||||
%if 0%{?suse_version} < 1600
|
||||
-DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name}
|
||||
%endif
|
||||
%cmake %{build_args}
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
|
Loading…
Reference in New Issue
Block a user