4 Star 0 Fork 1

OpenCloudOS Stream/mold

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mold.spec 2.67 KB
一键复制 编辑 原始数据 按行查看 历史
Summary: A Modern Linker
Name: mold
Version: 2.1.0
Release: 5%{?dist}
License: MIT AND (Apache-2.0 OR MIT)
URL: https://github.com/rui314/mold
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
# fix on ppc64le (https://github.com/rui314/mold/issues/1087)
Patch0001: 0002-Avoid-reading-data-from-.plt.patch
Patch0002: 0003-Avoid-reading-data-from-.plt.patch
Patch3000: tbb-strip-werror.patch
Patch3001: Use-system-compatible-include-path-for-xxhash.h.patch
BuildRequires: cmake gcc gcc-c++ >= 10
BuildRequires: libzstd-devel mimalloc-devel openssl-devel xxhash-devel zlib-devel hwloc-devel
BuildRequires: clang gdb glibc-static libdwarf-tools libstdc++-static llvm
%ifarch x86_64
BuildRequires: /usr/lib64/libc.so
%endif
Requires(post): %{_sbindir}/alternatives
Requires(preun): %{_sbindir}/alternatives
Provides: bundled(tbb) = 2021.9
%description
mold is a faster drop-in replacement for existing Unix linkers.
It is several times faster than the LLVM lld linker.
mold is designed to increase developer productivity by reducing
build time, especially in rapid debug-edit-rebuild cycles.
%prep
%autosetup -p1
rm -r third-party/{mimalloc,xxhash,zlib,zstd}
%build
%cmake -DMOLD_USE_SYSTEM_MIMALLOC=ON
%cmake_build
%install
%cmake_install
%post
if [ "$1" = 1 ]; then
%{_sbindir}/alternatives --install %{_bindir}/ld ld %{_bindir}/ld.mold 1
fi
%postun
if [ "$1" = 0 ]; then
%{_sbindir}/alternatives --remove ld %{_bindir}/ld.mold
fi
%check
%ctest
%files
%license %{_docdir}/mold/LICENSE
%license %{_docdir}/mold/LICENSE.third-party
%ghost %{_bindir}/ld
%{_bindir}/mold
%{_bindir}/ld.mold
%{_libdir}/mold/mold-wrapper.so
%{_libexecdir}/mold/ld
%{_mandir}/man1/ld.mold.1*
%{_mandir}/man1/mold.1*
%changelog
* Thu Sep 26 2024 OpenCloudOS Release Engineering <[email protected]> - 2.1.0-5
- Rebuilt for clarifying the packages requirement in BaseOS and AppStream
* Fri Aug 16 2024 OpenCloudOS Release Engineering <[email protected]> - 2.1.0-4
- Rebuilt for loongarch release
* Mon Dec 25 2023 luffyluo <[email protected]> - 2.1.0-3
- Rebuilt for llvm 17.0.6
* Fri Sep 08 2023 OpenCloudOS Release Engineering <[email protected]> - 2.1.0-2
- Rebuilt for OpenCloudOS Stream 23.09
* Thu Aug 24 2023 Wang Guodong <[email protected]> - 2.1.0-1
- Upgrade to version 2.1.0
* Fri Apr 28 2023 OpenCloudOS Release Engineering <[email protected]> - 1.7.1-3
- Rebuilt for OpenCloudOS Stream 23.05
* Fri Mar 31 2023 OpenCloudOS Release Engineering <[email protected]> - 1.7.1-2
- Rebuilt for OpenCloudOS Stream 23
* Sat Dec 17 2022 Miaojun Dong <[email protected]> - 1.7.1-1
- initial build
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/opencloudos-stream/mold.git
[email protected]:opencloudos-stream/mold.git
opencloudos-stream
mold
mold
master

搜索帮助