From 42dfa0c11bd259c2bd1e4d3a4e54c22fd997d0a6 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Mon, 29 Aug 2022 12:25:27 +0100 Subject: [PATCH] Disable by default with lld lld does not support -spec files, so it cannot be used. Disable it again. - Fixes RHBZ#2119266 --- macros.package-notes-srpm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/macros.package-notes-srpm b/macros.package-notes-srpm index 28cefec..83583a1 100644 --- a/macros.package-notes-srpm +++ b/macros.package-notes-srpm @@ -19,7 +19,8 @@ %_generate_package_note_file %{nil} # Overall status: 1 if looks like we can insert the note, 0 otherwise -%_package_note_status %[0%{?_package_note_file:1} && 0%{?name:1} && "%_target_cpu" != "noarch" ? 1 : 0] +# Unfortunately "clang" does not support specs files so the note insertion is disabled when using it. +%_package_note_status %[0%{?_package_note_file:1} && 0%{?name:1} && "%_target_cpu" != "noarch" && "%{toolchain}" != "clang" ? 1 : 0] # The linker flags to be passed to the compiler to insert the notes section will # be created by the spec file, to avoid issues with quoting and escaping across