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
|
BuildRequires: zstd
|
||||||
PreReq: update-alternatives
|
PreReq: update-alternatives
|
||||||
|
|
||||||
%if %{suse_version} < 1550
|
%if %{suse_version} < 1600
|
||||||
%define build_args -DMOLD_USE_MIMALLOC=OFF -DMOLD_USE_MIMALLOC=OFF
|
%define build_args -DMOLD_USE_MIMALLOC=OFF -DMOLD_USE_MIMALLOC=OFF -DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name}
|
||||||
%else
|
%else
|
||||||
%define build_args -DMOLD_USE_MIMALLOC=OFF -DMOLD_USE_MIMALLOC=OFF -DMOLD_USE_SYSTEM_TBB=ON
|
%define build_args -DMOLD_USE_MIMALLOC=OFF -DMOLD_USE_MIMALLOC=OFF -DMOLD_USE_SYSTEM_TBB=ON
|
||||||
%endif
|
%endif
|
||||||
@ -71,10 +71,7 @@ build time especially in rapid debug-edit-rebuild cycles.
|
|||||||
export CC=gcc-11
|
export CC=gcc-11
|
||||||
export CXX=g++-11
|
export CXX=g++-11
|
||||||
%endif
|
%endif
|
||||||
%cmake %{build_args} \
|
%cmake %{build_args}
|
||||||
%if 0%{?suse_version} < 1600
|
|
||||||
-DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name}
|
|
||||||
%endif
|
|
||||||
%cmake_build
|
%cmake_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
Loading…
Reference in New Issue
Block a user