- Enable frame pointers for AlmaLinux 10+

This commit is contained in:
eabdullin 2024-07-17 16:05:28 +03:00
parent 43f76414c7
commit 01821a2fe6
2 changed files with 5 additions and 2 deletions

2
macros
View File

@ -366,7 +366,7 @@ for k,_ in pairs(stripped_flags) do print(k .. " ") end
# at a later date. # at a later date.
# https://fedoraproject.org/wiki/Changes/fno-omit-frame-pointer # https://fedoraproject.org/wiki/Changes/fno-omit-frame-pointer
# Use "%undefine _include_frame_pointers" to disable. # Use "%undefine _include_frame_pointers" to disable.
%_include_frame_pointers %{undefined rhel} || 0%{?rhel} >= 11 %_include_frame_pointers %{undefined rhel} || 0%{?rhel} >= 10
%_frame_pointers_cflags %{expr:0%{?_include_frame_pointers} ? "-fno-omit-frame-pointer" : ""} %_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_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" : ""} %_frame_pointers_cflags_aarch64 %{expr:0%{?_include_frame_pointers} ? "-mno-omit-leaf-frame-pointer" : ""}

View File

@ -9,7 +9,7 @@
Summary: Red Hat specific rpm configuration files Summary: Red Hat specific rpm configuration files
Name: redhat-rpm-config Name: redhat-rpm-config
Version: %{baserelease} Version: %{baserelease}
Release: 1%{?dist} Release: 1%{?dist}.alma.1
# config.guess, config.sub are GPL-3.0-or-later WITH Autoconf-exception-generic # config.guess, config.sub are GPL-3.0-or-later WITH Autoconf-exception-generic
License: GPL-1.0-or-later AND GPL-2.0-or-later AND GPL-3.0-or-later WITH Autoconf-exception-generic AND Boehm-GC License: GPL-1.0-or-later AND GPL-2.0-or-later AND GPL-3.0-or-later WITH Autoconf-exception-generic AND Boehm-GC
URL: https://src.fedoraproject.org/rpms/redhat-rpm-config URL: https://src.fedoraproject.org/rpms/redhat-rpm-config
@ -259,6 +259,9 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/fedora common.lua
%doc buildflags.md %doc buildflags.md
%changelog %changelog
* Wed Jul 17 2024 Eduard Abdullin <eabdullint@almalinux.org> - 285-1.alma.1
- Enable frame pointers for AlmaLinux 10+
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 285-1 * Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 285-1
- Bump release for June 2024 mass rebuild - Bump release for June 2024 mass rebuild