]> git.pld-linux.org Git - packages/mold.git/blame - mold.spec
updated passing build flags; rel 2
[packages/mold.git] / mold.spec
CommitLineData
a2080a44
JP
1Summary: mold: A Modern Linker
2Name: mold
e816c329 3Version: 1.0.2
5c950940 4Release: 2
a2080a44
JP
5License: GPL v3+
6Group: Development/Libraries
7Source0: https://github.com/rui314/mold/archive/v%{version}/%{name}-%{version}.tar.gz
e816c329 8# Source0-md5: 6308dd1775808fdcf83538927239ebdb
a2080a44
JP
9URL: https://github.com/rui314/mold
10BuildRequires: libstdc++-devel >= 6:10
11BuildRequires: mimalloc-devel >= 1.7
12BuildRequires: openssl-devel
13BuildRequires: tbb-devel >= 2021.3.0
14BuildRequires: xxHash-devel
15BuildRequires: zlib-devel
16Requires: mimalloc >= 1.7
17Requires: tbb >= 2021.3.0
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21mold is a faster drop-in replacement for existing Unix linkers. It is
22several times faster than LLVM lld linker, the second-fastest
23open-source linker which I originally created a few years ago. mold is
24created for increasing developer productivity by reducing build time
25especially in rapid debug-edit-rebuild cycles.
26
27%prep
28%setup -q
29
30%{__rm} -r third-party/{mimalloc,tbb}
31
32%build
a2080a44
JP
33%{__make} \
34 CC="%{__cc}" \
35 CXX="%{__cxx}" \
5c950940
JP
36 CFLAGS="%{rpmcppflags} %{rpmcflags}" \
37 CXXFLAGS="%{rpmcppflags} %{rpmcxxflags}" \
38 LDFLAGS="%{rpmldflags}" \
a2080a44
JP
39 SYSTEM_MIMALLOC=1 \
40 SYSTEM_TBB=1 \
41 PREFIX="%{_prefix}" \
42 BINDIR="%{_bindir}" \
43 LIBDIR="%{_libdir}" \
44 MANDIR="%{_mandir}"
45
46%install
47rm -rf $RPM_BUILD_ROOT
48
49%{__make} install \
50 D=$RPM_BUILD_ROOT \
51 SYSTEM_MIMALLOC=1 \
52 SYSTEM_TBB=1 \
53 STRIP=: \
54 PREFIX="%{_prefix}" \
55 BINDIR="%{_bindir}" \
56 LIBDIR="%{_libdir}" \
57 MANDIR="%{_mandir}"
58
59%clean
60rm -rf $RPM_BUILD_ROOT
61
62%files
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
68%dir %{_libdir}/mold
69%attr(755,root,root) %{_libdir}/mold/mold-wrapper.so
5178e76b
JP
70%dir %{_libexecdir}/mold
71%attr(755,root,root) %{_libexecdir}/mold/ld
a2080a44 72%{_mandir}/man1/mold.1*
This page took 0.066841 seconds and 4 git commands to generate.