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