diff --git a/buildflags.md b/buildflags.md index 6252cb6..1a13c60 100644 --- a/buildflags.md +++ b/buildflags.md @@ -131,7 +131,7 @@ a construct like this to avoid *lowering* a future default: ``` %if %build_type_safety_c < 2 -%global %build_type_safety_c 2 +%global build_type_safety_c 2 %endif ``` diff --git a/macros b/macros index 6f6a130..1912bb7 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" : ""} diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index d2f332d..b1ed6d9 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -4,7 +4,7 @@ # 2) When making changes, increment the version (in baserelease) by 1. # rpmdev-bumpspec and other tools update the macro below, which is used # in Version: to get the desired effect. -%global baserelease 270 +%global baserelease 271 Summary: Red Hat specific rpm configuration files Name: redhat-rpm-config @@ -255,11 +255,14 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/fedora common.lua %doc buildflags.md %changelog -* Thu Oct 12 2023 David Abdurachmanov - 270-1.0.riscv64 +* Thu Nov 30 2023 David Abdurachmanov - 271-1.0.riscv64 - Add riscv64 to %%gap_arches, %%java_arches, and %%nodejs_arches - Set %%_clang_lto_cflags to %%nil as ld.gold is not implemented for riscv64 and thus LTO with Clang doesn't work. +* Fri Nov 03 2023 Stephen Gallagher - 271-1 +- ELN: Enable frame pointers for RHEL 11+ (for now) + * Thu Oct 5 2023 Florian Weimer - 270-1 - Disable -fstack-clash-protection on riscv64 (#2242327)