From 8bf5ea8229dc8e2b4bacac7c8babd21bc9462bb62979e1055cdd3d1c0f19b2a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Li=C5=A1ka?= Date: Fri, 1 Mar 2024 16:20:22 +0000 Subject: [PATCH] Fix package build OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/mold?expand=0&rev=114 --- mold.spec | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/mold.spec b/mold.spec index 1db69a5..dce135c 100644 --- a/mold.spec +++ b/mold.spec @@ -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