From 0d749746e2ddabcf7fd007825c65938e68c8ed28820c5a9c4df278e1000a74ab Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Wed, 22 Dec 2021 19:18:10 +0000 Subject: [PATCH] Accepting request 942074 from devel:gcc - Ignore -Wno-sign-compare for now. - Use system package for tbb and xxhash. OBS-URL: https://build.opensuse.org/request/show/942074 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mold?expand=0&rev=2 --- mold.changes | 10 ++++++++++ mold.spec | 10 ++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/mold.changes b/mold.changes index 4560d7c..e625966 100644 --- a/mold.changes +++ b/mold.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Tue Dec 21 17:04:56 UTC 2021 - Martin Liška + +- Ignore -Wno-sign-compare for now. + +------------------------------------------------------------------- +Tue Dec 21 16:35:38 UTC 2021 - Martin Liška + +- Use system package for tbb and xxhash. + ------------------------------------------------------------------- Tue Dec 21 15:03:07 UTC 2021 - Mark Nefedov diff --git a/mold.spec b/mold.spec index dc05cde..3f3bf23 100644 --- a/mold.spec +++ b/mold.spec @@ -28,8 +28,11 @@ BuildRequires: gcc-c++ BuildRequires: openssl-devel BuildRequires: xxhash-devel BuildRequires: zlib-devel +BuildRequires: tbb-devel PreReq: update-alternatives +%define build_args "SYSTEM_TBB=1 SYSTEM_XXHASH=1" + %description mold is a faster drop-in replacement for existing Unix linkers. It is several times faster than LLVM lld linker, the second-fastest @@ -43,19 +46,18 @@ build time especially in rapid debug-edit-rebuild cycles. %build export CC=gcc export CXX=g++ -export CFLAGS="%{optflags}" +export CFLAGS="%{optflags} -Wno-sign-compare" export CXXFLAGS="${CFLAGS}" - export MANDIR=%{_mandir} export LIBDIR=%{_libdir} export BINDIR=%{_bindir} -%make_build +%make_build %{build_args} %install export MANDIR=%{_mandir} export LIBDIR=%{_libdir} export BINDIR=%{_bindir} -%make_install +%make_install %{build_args} %post "%_sbindir/update-alternatives" --install \