From d26d18e6f420cacba669ae1cf6ac911187c47dc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 25 Jan 2022 18:19:07 +0100 Subject: [PATCH] Disable notes when clang toolchain is used on arm Per https://bugzilla.redhat.com/show_bug.cgi?id=2043178#c27. --- macros.package-notes-srpm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/macros.package-notes-srpm b/macros.package-notes-srpm index 5a27915..213d051 100644 --- a/macros.package-notes-srpm +++ b/macros.package-notes-srpm @@ -34,7 +34,9 @@ # "lld". Unfortunately linkers other than bfd do not support some of # the options that we'd like to use, so if this is set to anything # other than "bfd", note insertion is disabled. -%_package_note_linker bfd +# +# (The default linker for clang on armv7hl is lld.) +%_package_note_linker %["%_target_cpu" == "armv7hl" && "%{toolchain}" == "clang" ? "lld" : "bfd"] # Whether to specify the READONLY attribute for the inserted # section. We generally want this, but binutils <= 2.37 and other