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