From 6cee6aebe61edde88aa1ae1e83c7389ef64f07d9 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 25 Jan 2022 16:35:13 +0100 Subject: [PATCH] Set _package_note_linker on arm On ARM, the default linker is lld when using the clange toolchain, so specify that as the _package_note_linker. This will use the -T rather than -dT option for the package note script. Ideally this would be handled in a more central location. --- llvm.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm.spec b/llvm.spec index 6488c44..81d9497 100644 --- a/llvm.spec +++ b/llvm.spec @@ -66,6 +66,11 @@ %global llvm_triple %{_host} %endif +# We build with clang, in which case lld is the default linker on arm. +%ifarch %{arm} +%global _package_note_linker lld +%endif + Name: %{pkg_name} Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}} Release: 1%{?dist}