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
This commit is contained in:
Dominique Leuenberger 2021-12-22 19:18:10 +00:00 committed by Git OBS Bridge
parent 421cee66d5
commit 0d749746e2
2 changed files with 16 additions and 4 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Tue Dec 21 17:04:56 UTC 2021 - Martin Liška <mliska@suse.cz>
- Ignore -Wno-sign-compare for now.
-------------------------------------------------------------------
Tue Dec 21 16:35:38 UTC 2021 - Martin Liška <mliska@suse.cz>
- Use system package for tbb and xxhash.
-------------------------------------------------------------------
Tue Dec 21 15:03:07 UTC 2021 - Mark Nefedov <mark_nefedov@runbox.com>

View File

@ -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 \