]> git.pld-linux.org Git - packages/mold.git/blobdiff - mold.spec
up to 1.2.0
[packages/mold.git] / mold.spec
index 7b00c9321a2f028f856863ca75a0651e4476e852..f6ea147ba495dfaf63e943355668308ad5ba9d96 100644 (file)
--- a/mold.spec
+++ b/mold.spec
@@ -1,20 +1,21 @@
 Summary:       mold: A Modern Linker
 Name:          mold
-Version:       1.0.0
+Version:       1.2.0
 Release:       1
 License:       GPL v3+
 Group:         Development/Libraries
 Source0:       https://github.com/rui314/mold/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 27e4b3bc9ae9b65a9bc90785de31ace6
+# Source0-md5: 6e9dba635bd3ed1d39a8fe6411a2005e
 URL:           https://github.com/rui314/mold
 BuildRequires: libstdc++-devel >= 6:10
 BuildRequires: mimalloc-devel >= 1.7
 BuildRequires: openssl-devel
+BuildRequires: pkgconfig
 BuildRequires: tbb-devel >= 2021.3.0
-BuildRequires: xxHash-devel
 BuildRequires: zlib-devel
 Requires:      mimalloc >= 1.7
 Requires:      tbb >= 2021.3.0
+ExclusiveArch: %{ix86} %{x8664} %{arm} aarch64 riscv64
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -30,13 +31,12 @@ especially in rapid debug-edit-rebuild cycles.
 %{__rm} -r third-party/{mimalloc,tbb}
 
 %build
-export CPPFLAGS="%{rpmcppflags}"
-export CFLAGS="%{rpmcflags}"
-export CXXFLAGS="%{rpmcxxflags}"
-export LDFLAGS="%{rpmldflags}"
 %{__make} \
        CC="%{__cc}" \
        CXX="%{__cxx}" \
+       CFLAGS="%{rpmcppflags} %{rpmcflags}" \
+       CXXFLAGS="%{rpmcppflags} %{rpmcxxflags}" \
+       LDFLAGS="%{rpmldflags}" \
        SYSTEM_MIMALLOC=1 \
        SYSTEM_TBB=1 \
        PREFIX="%{_prefix}" \
@@ -68,4 +68,6 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/mold
 %dir %{_libdir}/mold
 %attr(755,root,root) %{_libdir}/mold/mold-wrapper.so
+%dir %{_libexecdir}/mold
+%attr(755,root,root) %{_libexecdir}/mold/ld
 %{_mandir}/man1/mold.1*
This page took 0.095014 seconds and 4 git commands to generate.