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 \