From 543b887fe7a5569578e320d50fca30b6a4a5453c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 10 Oct 2024 09:06:28 +0200 Subject: [PATCH] Port a few changes from the llvm 18 compat packages https://src.fedoraproject.org/rpms/lld18/pull-request/2 https://src.fedoraproject.org/rpms/clang18/pull-request/5 --- llvm.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm.spec b/llvm.spec index 0d454ad..a9f2fed 100644 --- a/llvm.spec +++ b/llvm.spec @@ -631,6 +631,7 @@ Requires(post): %{_sbindir}/update-alternatives Requires(preun): %{_sbindir}/update-alternatives Requires: %{pkg_name_lld}-libs = %{version}-%{release} +Provides: lld(major) = %{maj_ver} %description -n %{pkg_name_lld} The LLVM project linker. @@ -1176,7 +1177,7 @@ rm -Rf %{buildroot}%{install_libdir}/{libear,libscanbuild} rm -Rf %{buildroot}%{install_datadir}/clang/*.el # Add clang++-{version} symlink -ln -s ../../%{install_bindir}/clang++ %{buildroot}%{install_bindir}/clang++-%{maj_ver} +ln -s clang++ %{buildroot}%{install_bindir}/clang++-%{maj_ver} %endif