Add _frame_pointers_cflags redefine, to enable frame pointers
This commit is contained in:
parent
35a94366dc
commit
71e8f0afc7
@ -11,7 +11,7 @@
|
||||
|
||||
Name: almalinux-release
|
||||
Version: %{major}.%{minor}
|
||||
Release: 0.14%{?dist}
|
||||
Release: 0.14%{?dist}.1
|
||||
Summary: %{distro} release files
|
||||
License: GPLv2
|
||||
URL: https://almalinux.org
|
||||
@ -306,6 +306,10 @@ install -p -m 0644 %{SOURCE600} %{buildroot}%{_sysconfdir}/pki/rpm-gpg/
|
||||
# These variables should be set in the build environment to change rpm names
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/rpm
|
||||
echo '%%_include_frame_pointers 1' > %{buildroot}%{_sysconfdir}/rpm/macros.include_frame_pointers
|
||||
echo '%%_frame_pointers_cflags %%{expr:0%%{?_include_frame_pointers} ? "-fno-omit-frame-pointer" : ""}' >> %{buildroot}%{_sysconfdir}/rpm/macros.include_frame_pointers
|
||||
echo '%%_frame_pointers_cflags_x86_64 %%{expr:0%%{?_include_frame_pointers} ? "-mno-omit-leaf-frame-pointer" : ""}' >> %{buildroot}%{_sysconfdir}/rpm/macros.include_frame_pointers
|
||||
echo '%%_frame_pointers_cflags_aarch64 %%{expr:0%%{?_include_frame_pointers} ? "-mno-omit-leaf-frame-pointer" : ""}' >> %{buildroot}%{_sysconfdir}/rpm/macros.include_frame_pointers
|
||||
echo '%%_frame_pointers_cflags_s390x %%{expr:0%%{?_include_frame_pointers} ? "-mbackchain" : ""}' >> %{buildroot}%{_sysconfdir}/rpm/macros.include_frame_pointers
|
||||
%ifarch x86_64_v2
|
||||
echo '%%_target_platform x86_64-%%{_vendor}-%%{_target_os}%%{?_gnu}' >> %{buildroot}%{_sysconfdir}/rpm/macros.x86_64_v2
|
||||
%endif
|
||||
@ -367,5 +371,8 @@ echo '%%_target_platform x86_64-%%{_vendor}-%%{_target_os}%%{?_gnu}' >> %{buildr
|
||||
%{_sysconfdir}/pki/rpm-gpg
|
||||
|
||||
%changelog
|
||||
* Mon Jul 15 2024 Eduard Abdullin <eabdullin@almalinux.org> - 10.0-0.14.1
|
||||
- Add _frame_pointers_cflags redefine, to enable frame pointers
|
||||
|
||||
* Tue Jul 02 2024 Eduard Abdullin <eabdullin@almalinux.org> - 10.0-0.14
|
||||
- AlmaLinux 10 beta release
|
||||
|
Loading…
Reference in New Issue
Block a user