Add %_hardening_linker_errors back to GCC ldflags

This was accidentally removed in fda90b0a42

Resolves: RHEL-91948

(cherry picked from commit d76f8229fe34f544bf596993fcab9cf706600543)
This commit is contained in:
Timm Bäder 2025-04-22 09:02:00 +02:00 committed by Tom Stellard
parent 115a507186
commit edeb62e65c
2 changed files with 2 additions and 2 deletions

2
macros
View File

@ -335,7 +335,7 @@ for k,_ in pairs(stripped_flags) do print(k .. " ") end
%_hardened_linker_errors 1 %_hardened_linker_errors 1
# we don't escape symbols '~', '"', etc. so be careful when changing this # we don't escape symbols '~', '"', etc. so be careful when changing this
%_hardening_gcc_ldflags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld %_hardening_gcc_ldflags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld %{?_hardened_linker_errors:%{_hardening_linker_errors}}
%_hardening_clang_ldflags --config=/usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg %_hardening_clang_ldflags --config=/usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg
%_hardening_ldflags -Wl,-z,now %{expand:%%{_hardening_%{toolchain}_ldflags}} %_hardening_ldflags -Wl,-z,now %{expand:%%{_hardening_%{toolchain}_ldflags}}

View File

@ -4,7 +4,7 @@
# 2) When making changes, increment the version (in baserelease) by 1. # 2) When making changes, increment the version (in baserelease) by 1.
# rpmdev-bumpspec and other tools update the macro below, which is used # rpmdev-bumpspec and other tools update the macro below, which is used
# in Version: to get the desired effect. # in Version: to get the desired effect.
%global baserelease 290 %global baserelease 291
Summary: Red Hat specific rpm configuration files Summary: Red Hat specific rpm configuration files
Name: redhat-rpm-config Name: redhat-rpm-config