1 Summary: mold: A Modern Linker
6 Group: Development/Libraries
7 Source0: https://github.com/rui314/mold/archive/v%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5: 6308dd1775808fdcf83538927239ebdb
9 URL: https://github.com/rui314/mold
10 BuildRequires: libstdc++-devel >= 6:10
11 BuildRequires: mimalloc-devel >= 1.7
12 BuildRequires: openssl-devel
13 BuildRequires: tbb-devel >= 2021.3.0
14 BuildRequires: xxHash-devel
15 BuildRequires: zlib-devel
16 Requires: mimalloc >= 1.7
17 Requires: tbb >= 2021.3.0
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 mold is a faster drop-in replacement for existing Unix linkers. It is
22 several times faster than LLVM lld linker, the second-fastest
23 open-source linker which I originally created a few years ago. mold is
24 created for increasing developer productivity by reducing build time
25 especially in rapid debug-edit-rebuild cycles.
30 %{__rm} -r third-party/{mimalloc,tbb}
36 CFLAGS="%{rpmcppflags} %{rpmcflags}" \
37 CXXFLAGS="%{rpmcppflags} %{rpmcxxflags}" \
38 LDFLAGS="%{rpmldflags}" \
47 rm -rf $RPM_BUILD_ROOT
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
64 %doc CONTRIBUTING.md README.md docs/*.md
65 %attr(755,root,root) %{_bindir}/ld.mold
66 %attr(755,root,root) %{_bindir}/ld64.mold
67 %attr(755,root,root) %{_bindir}/mold
69 %attr(755,root,root) %{_libdir}/mold/mold-wrapper.so
70 %dir %{_libexecdir}/mold
71 %attr(755,root,root) %{_libexecdir}/mold/ld
72 %{_mandir}/man1/mold.1*