Martin Liška 2024-03-01 16:20:22 +00:00 committed by Git OBS Bridge
parent 51ef3757f3
commit 8bf5ea8229

View File

@ -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