diff --git a/macros b/macros index 6049699..1bdd43a 100644 --- a/macros +++ b/macros @@ -104,7 +104,8 @@ local name = rpm.expand("%{1}") local value = " " .. rpm.expand("%{build_" .. name .. "}") local specs_pattern = "%s+-specs=[^%s]+" local lto_flags_pattern = rpm.expand("%{?_lto_cflags}"):gsub("[%-%.]", "%%%1") -local result = value:gsub(specs_pattern, " "):gsub(lto_flags_pattern, "") +local package_note_flags_pattern = "%-Wl,%S*package_note%S*" +local result = value:gsub(specs_pattern, " "):gsub(lto_flags_pattern, ""):gsub(package_note_flags_pattern, "") print(result) } diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index 97e620b..c9b0532 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -6,7 +6,7 @@ Summary: Red Hat specific rpm configuration files Name: redhat-rpm-config -Version: 209 +Version: 210 Release: 1%{?dist} # No version specified. License: GPL+ @@ -191,6 +191,10 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/fedora/srpm forge.lua %doc buildflags.md %changelog +* Thu Jan 20 2022 Miro Hrončok - 210-1 +- Remove package ELF note from the extension LDFLAGS +- Related: rhbz#2043092 + * Thu Jan 13 2022 Zbigniew Jędrzejewski-Szmek - 209-1 - Add package ELF note to the default LDFLAGS