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:
parent
421cee66d5
commit
0d749746e2
10
mold.changes
10
mold.changes
@ -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>
|
Tue Dec 21 15:03:07 UTC 2021 - Mark Nefedov <mark_nefedov@runbox.com>
|
||||||
|
|
||||||
|
10
mold.spec
10
mold.spec
@ -28,8 +28,11 @@ BuildRequires: gcc-c++
|
|||||||
BuildRequires: openssl-devel
|
BuildRequires: openssl-devel
|
||||||
BuildRequires: xxhash-devel
|
BuildRequires: xxhash-devel
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
|
BuildRequires: tbb-devel
|
||||||
PreReq: update-alternatives
|
PreReq: update-alternatives
|
||||||
|
|
||||||
|
%define build_args "SYSTEM_TBB=1 SYSTEM_XXHASH=1"
|
||||||
|
|
||||||
%description
|
%description
|
||||||
mold is a faster drop-in replacement for existing Unix linkers.
|
mold is a faster drop-in replacement for existing Unix linkers.
|
||||||
It is several times faster than LLVM lld linker, the second-fastest
|
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
|
%build
|
||||||
export CC=gcc
|
export CC=gcc
|
||||||
export CXX=g++
|
export CXX=g++
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags} -Wno-sign-compare"
|
||||||
export CXXFLAGS="${CFLAGS}"
|
export CXXFLAGS="${CFLAGS}"
|
||||||
|
|
||||||
export MANDIR=%{_mandir}
|
export MANDIR=%{_mandir}
|
||||||
export LIBDIR=%{_libdir}
|
export LIBDIR=%{_libdir}
|
||||||
export BINDIR=%{_bindir}
|
export BINDIR=%{_bindir}
|
||||||
%make_build
|
%make_build %{build_args}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
export MANDIR=%{_mandir}
|
export MANDIR=%{_mandir}
|
||||||
export LIBDIR=%{_libdir}
|
export LIBDIR=%{_libdir}
|
||||||
export BINDIR=%{_bindir}
|
export BINDIR=%{_bindir}
|
||||||
%make_install
|
%make_install %{build_args}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
"%_sbindir/update-alternatives" --install \
|
"%_sbindir/update-alternatives" --install \
|
||||||
|
Loading…
Reference in New Issue
Block a user