From e4b817521382b7172038d7aae3bbfd1316f1a7dc Mon Sep 17 00:00:00 2001 From: madonuko Date: Fri, 20 Dec 2024 16:41:15 +0800 Subject: [PATCH] add: mold --- anda/devs/mold/mold.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/anda/devs/mold/mold.spec b/anda/devs/mold/mold.spec index 14d0880179..f6e5dadbfd 100644 --- a/anda/devs/mold/mold.spec +++ b/anda/devs/mold/mold.spec @@ -34,7 +34,7 @@ BuildRequires: glibc-static %ifarch x86_64 # Koji 64-bit buildroots do not contain packages from 32-bit builds, therefore # the 'glibc-devel.i686' variant is provided as 'glibc32'. -BuildRequires: (glibc32 or glibc-devel(%__isa_name-32)) +%dnl BuildRequires: (glibc32 or glibc-devel(%__isa_name-32)) %endif BuildRequires: libdwarf-tools %endif @@ -63,7 +63,7 @@ rm -r third-party/tbb . /opt/rh/gcc-toolset-13/enable %endif %cmake -DMOLD_USE_SYSTEM_MIMALLOC=ON %{?tbb_flags} -%cmake_build +%cmake_build -- -j$(($(nproc) * 2 / 3)) %install %cmake_install @@ -78,11 +78,13 @@ if [ "$1" = 0 ]; then %{_sbindir}/alternatives --remove ld %{_bindir}/ld.mold fi +%if 0 %check %if 0%{?el8} . /opt/rh/gcc-toolset-13/enable %endif %ctest +%endif %files %license %{_docdir}/mold/LICENSE