2024-01-06 06:25:21 +01:00
|
|
|
%define gccver %(gcc -dumpversion)
|
|
|
|
%define majver %(echo %version | cut -d. -f1-2)
|
|
|
|
Name: lld
|
2024-01-06 06:25:21 +01:00
|
|
|
Version: 13.0.0
|
2024-01-06 06:25:21 +01:00
|
|
|
Release: 1mamba
|
2024-01-06 06:25:21 +01:00
|
|
|
Summary: Linker from the LLVM project
|
|
|
|
Group: Development/Languages
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-06 06:25:21 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 06:25:21 +01:00
|
|
|
URL: https://llvm.org/
|
|
|
|
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/lld-%{version}.src.tar.xz
|
2024-01-06 06:25:21 +01:00
|
|
|
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
|
2024-01-06 06:25:21 +01:00
|
|
|
Patch0: lld-9.0.1-sphinx-2.patch
|
2024-01-06 06:25:21 +01:00
|
|
|
Patch1: lld-13.0.0-arm-link-atomic.patch
|
2024-01-06 06:25:21 +01:00
|
|
|
License: NCSA
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libllvm-devel
|
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: llvm
|
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Linker from the LLVM project.
|
|
|
|
|
|
|
|
%package -n lib%{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Shared libraries for %{name}
|
|
|
|
|
|
|
|
%description -n lib%{name}
|
|
|
|
This package contains shared libraries for %{name}.
|
|
|
|
|
|
|
|
%package -n lib%{name}-devel
|
|
|
|
Summary: Libraries and header files for LLVM
|
|
|
|
Group: Development/Languages
|
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description -n lib%{name}-devel
|
|
|
|
This package contains library and header files needed to develop new native programs that use LLD libraries.
|
|
|
|
|
|
|
|
%package -n lib%{name}-apidocs
|
|
|
|
Group: Documentation
|
|
|
|
Summary: lib%{name} API documentation
|
|
|
|
Requires: lib%{name}-devel = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
Requires: gtk-doc
|
|
|
|
|
|
|
|
%description -n lib%{name}-apidocs
|
|
|
|
This package includes the lib%{name} API documentation.
|
|
|
|
|
2024-01-06 06:25:21 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-06 06:25:21 +01:00
|
|
|
%prep
|
2024-01-06 06:25:21 +01:00
|
|
|
%setup -q -c -a1 -a2
|
|
|
|
#% setup -q -c -D -T
|
2024-01-06 06:25:21 +01:00
|
|
|
#:<< _EOF
|
2024-01-06 06:25:21 +01:00
|
|
|
#%patch0 -p1
|
2024-01-06 06:25:21 +01:00
|
|
|
%ifarch arm
|
|
|
|
%patch1 -p0
|
|
|
|
%endif
|
2024-01-06 06:25:21 +01:00
|
|
|
|
2024-01-06 06:25:21 +01:00
|
|
|
mv libunwind-%{version}.src libunwind
|
2024-01-06 06:25:21 +01:00
|
|
|
|
2024-01-06 06:25:21 +01:00
|
|
|
%build
|
|
|
|
#:<< _EOF
|
|
|
|
cd %{name}-%{version}.src
|
2024-01-06 06:25:21 +01:00
|
|
|
mkdir -p build
|
|
|
|
cd build
|
|
|
|
|
|
|
|
cmake .. -G Ninja \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DBUILD_SHARED_LIBS=ON \
|
2024-01-06 06:25:21 +01:00
|
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
|
|
-DPYTHON_EXECUTABLE=%{__python3} \
|
2024-01-06 06:25:21 +01:00
|
|
|
-DLLVM_LINK_LLVM_DYLIB=ON \
|
|
|
|
-DLLVM_INCLUDE_TESTS=ON \
|
|
|
|
-DLLVM_BUILD_TESTS=ON \
|
|
|
|
-DLLVM_BUILD_DOCS=ON \
|
|
|
|
-DLLVM_ENABLE_SPHINX=ON \
|
2024-01-06 06:25:21 +01:00
|
|
|
-DSPHINX_WARNINGS_AS_ERRORS=OFF \
|
|
|
|
-DLLVM_EXTERNAL_LIT=%{_bindir}/lit \
|
|
|
|
-DLLVM_MAIN_SRC_DIR="%{_builddir}/%{name}-%{version}/llvm-%{version}.src/" \
|
|
|
|
-Wno-dev
|
2024-01-06 06:25:21 +01:00
|
|
|
|
|
|
|
ninja
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 06:25:21 +01:00
|
|
|
cd %{name}-%{version}.src/build
|
2024-01-06 06:25:21 +01:00
|
|
|
export DESTDIR=%{buildroot}
|
|
|
|
ninja install
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-06 06:25:21 +01:00
|
|
|
%post -n lib%{name} -p /sbin/ldconfig
|
|
|
|
%postun -n lib%{name} -p /sbin/ldconfig
|
2024-01-06 06:25:21 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/wasm-ld
|
|
|
|
%{_bindir}/ld64.lld
|
2024-01-06 06:25:21 +01:00
|
|
|
%{_bindir}/ld64.lld.darwinnew
|
|
|
|
%{_bindir}/ld64.lld.darwinold
|
2024-01-06 06:25:21 +01:00
|
|
|
%{_bindir}/ld.lld
|
|
|
|
%{_bindir}/lld
|
|
|
|
%{_bindir}/lld-link
|
2024-01-06 06:25:21 +01:00
|
|
|
%doc %{name}-%{version}.src/LICENSE.TXT
|
2024-01-06 06:25:21 +01:00
|
|
|
|
|
|
|
%files -n lib%{name}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/liblld*.so.*
|
|
|
|
|
|
|
|
%files -n lib%{name}-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/liblld*.so
|
|
|
|
%dir %{_includedir}/lld
|
|
|
|
%{_includedir}/lld/*
|
2024-01-06 06:25:21 +01:00
|
|
|
%dir %{_libdir}/cmake/lld
|
|
|
|
%{_libdir}/cmake/lld/LLD*.cmake
|
2024-01-06 06:25:21 +01:00
|
|
|
|
|
|
|
%files -n lib%{name}-apidocs
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_docdir}/lld
|
|
|
|
%{_docdir}/lld/*
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 06:25:21 +01:00
|
|
|
* Mon Nov 01 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 13.0.0-1mamba
|
|
|
|
- update to 13.0.0
|
|
|
|
|
2024-01-06 06:25:21 +01:00
|
|
|
* Thu Mar 25 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 11.1.0-1mamba
|
|
|
|
- update to 11.1.0
|
|
|
|
|
2024-01-06 06:25:21 +01:00
|
|
|
* Mon Jan 11 2021 Automatic Build System <autodist@mambasoft.it> 11.0.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:25:21 +01:00
|
|
|
* Mon Oct 12 2020 Automatic Build System <autodist@mambasoft.it> 11.0.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:25:21 +01:00
|
|
|
* Sat Jul 25 2020 Automatic Build System <autodist@mambasoft.it> 10.0.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:25:21 +01:00
|
|
|
* Mon Mar 30 2020 Automatic Build System <autodist@mambasoft.it> 10.0.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:25:21 +01:00
|
|
|
* Sat Feb 08 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 9.0.1-3mamba
|
|
|
|
- lld standalone package from llvm
|
|
|
|
|
|
|
|
* Tue Jan 07 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 9.0.1-2mamba
|
|
|
|
- rebuild with -DLLVM_ENABLE_LTO=Thin
|
|
|
|
|
|
|
|
* Mon Dec 30 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 9.0.1-1mamba
|
|
|
|
- update to 9.0.1
|
|
|
|
|
|
|
|
* Thu Mar 28 2019 Automatic Build System <autodist@mambasoft.it> 8.0.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Jan 26 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 7.0.1-4mamba
|
|
|
|
- bump release
|
|
|
|
|
|
|
|
* Sat Jan 26 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 7.0.1-3mamba
|
|
|
|
- move *.so from libllvm-devel to libllvm
|
|
|
|
|
|
|
|
* Mon Jan 21 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 7.0.1-2mamba
|
|
|
|
- rebuilt with binutils plugin LLVMgold.so
|
|
|
|
|
|
|
|
* Sat Dec 22 2018 Automatic Build System <autodist@mambasoft.it> 7.0.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Oct 14 2018 Automatic Build System <autodist@mambasoft.it> 7.0.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Sep 02 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 6.0.1-4mamba
|
|
|
|
- remove building with libc++ to fix e.g. Mesa build
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 6.0.1-3mamba
|
|
|
|
- rebuilt wth LLVM_ENABLE_LIBCXX=ON
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 6.0.1-2mamba
|
|
|
|
- rebuilt with libc++
|
|
|
|
|
|
|
|
* Sat Jul 07 2018 Automatic Build System <autodist@mambasoft.it> 6.0.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Jun 25 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 6.0.0-4mamba
|
|
|
|
- rebuilt with gcc 8.1.0
|
|
|
|
|
|
|
|
* Sun Jun 24 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 6.0.0-3mamba
|
|
|
|
- apply patches from Arch to possibly fix lld segfault
|
|
|
|
|
|
|
|
* Sat Jun 23 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 6.0.0-2mamba
|
|
|
|
- rebuilt with standard target libdir and other changes to try fixing lld crash with at least chromium build
|
|
|
|
|
|
|
|
* Tue Jun 19 2018 Automatic Build System <autodist@mambasoft.it> 6.0.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Dec 25 2017 Automatic Build System <autodist@mambasoft.it> 5.0.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Nov 28 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.0-2mamba
|
|
|
|
- fix link against libllvm by changing and extending build arguments and external llvm subpackages
|
|
|
|
|
|
|
|
* Tue Nov 28 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.0-1mamba
|
|
|
|
- update to 5.0.0
|
|
|
|
|
|
|
|
* Wed Jul 13 2016 Automatic Build System <autodist@mambasoft.it> 3.8.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Jun 11 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 3.8.0-3mamba
|
|
|
|
- rebuilt using cmake
|
|
|
|
|
|
|
|
* Sat May 28 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 3.8.0-2mamba
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Thu May 26 2016 Automatic Build System <autodist@mambasoft.it> 3.8.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Jan 18 2015 Automatic Build System <autodist@mambasoft.it> 3.5.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Sep 19 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.5.0-2mamba
|
|
|
|
- patch llvm-config for x86_64 support and %{_libdir}/llvm
|
|
|
|
|
|
|
|
* Wed Sep 10 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.5.0-1mamba
|
|
|
|
- update to 3.5.0
|
|
|
|
|
|
|
|
* Thu Jul 10 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.2-1mamba
|
|
|
|
- update to 3.4.2
|
|
|
|
|
|
|
|
* Sun Feb 16 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4-2mamba
|
|
|
|
- fix configure settings and add --with-extra-ld-options to correctly link and
|
|
|
|
pass --with-arch=%{_target_cpu} to fix penmamba bug #000163
|
|
|
|
|
|
|
|
* Sun Jan 12 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4-1mamba
|
|
|
|
- update to 3.4
|
|
|
|
|
|
|
|
* Thu Jun 20 2013 Automatic Build System <autodist@mambasoft.it> 3.3-1mamba
|
|
|
|
- update to 3.3
|
|
|
|
|
|
|
|
* Sat Dec 22 2012 Automatic Build System <autodist@mambasoft.it> 3.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Jul 20 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1-1mamba
|
|
|
|
- update to 3.1
|
|
|
|
|
|
|
|
* Thu Feb 23 2012 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 3.0.-1mamba
|
|
|
|
- update to 3.0
|
|
|
|
|
|
|
|
* Sun Jul 10 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.9-1mamba
|
|
|
|
- update to 2.9
|
|
|
|
|
|
|
|
* Sat Jan 01 2011 Davide Madrisan <davide.madrisan@gmail.com> 2.8-1mamba
|
|
|
|
- package created by autospec
|