update to 13.0.0 [release 13.0.0-1mamba;Mon Nov 01 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 06:25:21 +01:00
parent bc07f917db
commit 81681a9126
2 changed files with 39 additions and 22 deletions

View File

@ -0,0 +1,10 @@
--- lld-13.0.0.src/COFF/CMakeLists.txt.orig 2021-11-13 10:52:52.344041818 +0100
+++ lld-13.0.0.src/COFF/CMakeLists.txt 2021-11-13 10:45:51.972053052 +0100
@@ -41,6 +41,7 @@
LINK_LIBS
lldCommon
+ atomic
${LLVM_PTHREAD_LIB}
DEPENDS

View File

@ -1,20 +1,22 @@
%define gccver %(gcc -dumpversion)
%define majver %(echo %version | cut -d. -f1-2)
Name: lld
Version: 11.1.0
Version: 13.0.0
Release: 1mamba
Summary: Linker from the LLVM project
Group: Development/Languages
Vendor: openmamba
Distribution: openmamba
Packager: Davide Madrisan <davide.madrisan@gmail.com>
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://llvm.org/
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/lld-%{version}.src.tar.xz
Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/libunwind-%{version}.src.tar.xz
Source2: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/llvm-%{version}.src.tar.xz
Patch0: lld-9.0.1-sphinx-2.patch
Patch1: lld-13.0.0-arm-link-atomic.patch
License: NCSA
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libgcc
BuildRequires: libllvm-devel
BuildRequires: libstdc++6-devel
@ -52,59 +54,61 @@ This package includes the lib%{name} API documentation.
%debug_package
%prep
%setup -q -n %{name}-%{version}.src
#-D -T
%setup -q -c -a1 -a2
#% setup -q -c -D -T
#:<< _EOF
#%patch0 -p1
%ifarch arm
%patch1 -p0
%endif
mv libunwind-%{version}.src libunwind
%build
#:<< __EOF
#:<< _EOF
cd %{name}-%{version}.src
mkdir -p build
cd build
cmake .. -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DPYTHON_EXECUTABLE=%{__python3} \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DPYTHON_EXECUTABLE=%{__python3} \
-DLLVM_LINK_LLVM_DYLIB=ON \
-DLLVM_INCLUDE_TESTS=ON \
-DLLVM_BUILD_TESTS=ON \
-DLLVM_BUILD_DOCS=ON \
-DLLVM_ENABLE_SPHINX=ON \
-DLLVM_EXTERNAL_LIT=%{_bindir}/lit
# -DLLVM_MAIN_SRC_DIR="$srcdir/llvm-$pkgver.src"
-DSPHINX_WARNINGS_AS_ERRORS=OFF \
-DLLVM_EXTERNAL_LIT=%{_bindir}/lit \
-DLLVM_MAIN_SRC_DIR="%{_builddir}/%{name}-%{version}/llvm-%{version}.src/" \
-Wno-dev
ninja
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
cd build
cd %{name}-%{version}.src/build
export DESTDIR=%{buildroot}
ninja install
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name}
/sbin/ldconfig
:
%postun -n lib%{name}
/sbin/ldconfig
:
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/wasm-ld
%{_bindir}/ld64.lld
%{_bindir}/ld64.lld.darwinnew
%{_bindir}/ld64.lld.darwinold
%{_bindir}/ld.lld
%{_bindir}/lld
%{_bindir}/lld-link
%doc LICENSE.TXT
%doc %{name}-%{version}.src/LICENSE.TXT
%files -n lib%{name}
%defattr(-,root,root)
@ -124,6 +128,9 @@ ninja install
%{_docdir}/lld/*
%changelog
* Mon Nov 01 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 13.0.0-1mamba
- update to 13.0.0
* Thu Mar 25 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 11.1.0-1mamba
- update to 11.1.0