From a65dee421c05707d6aaaed30ea5e19278422ea58 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Fri, 3 Nov 2023 13:51:14 -0400 Subject: [PATCH] ELN: Enable frame pointers for RHEL 11+ This will be active during the initial years of ELN development tracking RHEL 11. It may be reverted in the final Fedora cycle prior to branching if RHEL management decides to do so. See https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/ODSVQKC2HHO5W3JD63DW3C53DG5WATUA/ for details. Signed-off-by: Stephen Gallagher --- macros | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/macros b/macros index 46ff156..0e75747 100644 --- a/macros +++ b/macros @@ -350,10 +350,12 @@ for k,_ in pairs(stripped_flags) do print(k .. " ") end # to move the annobin notes into the separate debuginfo file. %_find_debuginfo_extra_opts %{?_annotated_build:--remove-section .gnu.build.attributes} -# Include frame pointer information by default, except on RHEL +# Include frame pointer information by default, except on RHEL 10 and earlier +# On RHEL 11, we are enabling it for now, with the possibility of revoking it +# at a later date. # https://fedoraproject.org/wiki/Changes/fno-omit-frame-pointer # Use "%undefine _include_frame_pointers" to disable. -%_include_frame_pointers %{undefined rhel} +%_include_frame_pointers %{undefined rhel} || 0%{?rhel} >= 11 %_frame_pointers_cflags %{expr:0%{?_include_frame_pointers} ? "-fno-omit-frame-pointer" : ""} %_frame_pointers_cflags_x86_64 %{expr:0%{?_include_frame_pointers} ? "-mno-omit-leaf-frame-pointer" : ""} %_frame_pointers_cflags_aarch64 %{expr:0%{?_include_frame_pointers} ? "-mno-omit-leaf-frame-pointer" : ""}