From 30fbe2f863f42f379b3ba9ef1574b137b21a4bda Mon Sep 17 00:00:00 2001 From: eabdullin Date: Wed, 10 Jul 2024 12:57:39 +0300 Subject: [PATCH] - Add macros.include_frame_pointers to enable frame pointers --- SPECS/almalinux-release.spec | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/SPECS/almalinux-release.spec b/SPECS/almalinux-release.spec index 3c93c74..7f0ab3f 100644 --- a/SPECS/almalinux-release.spec +++ b/SPECS/almalinux-release.spec @@ -304,11 +304,10 @@ install -d -m 0755 %{buildroot}%{_sysconfdir}/pki/rpm-gpg install -p -m 0644 %{SOURCE600} %{buildroot}%{_sysconfdir}/pki/rpm-gpg/ # These variables should be set in the build environment to change rpm names -%if 0%{?x86_64_v2} == 1 mkdir -p %{buildroot}%{_sysconfdir}/rpm -echo '%%x86_64_v2 1' > %{buildroot}%{_sysconfdir}/rpm/macros.arch_v2 -echo '%%_include_frame_pointers 1' >> %{buildroot}%{_sysconfdir}/rpm/macros.arch_v2 -echo '%%_target_platform x86_64-%%{_vendor}-%%{_target_os}%%{?_gnu}' >> %{buildroot}%{_sysconfdir}/rpm/macros.arch_v2 +echo '%%_include_frame_pointers 1' > %{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 @@ -331,8 +330,9 @@ echo '%%_target_platform x86_64-%%{_vendor}-%%{_target_os}%%{?_gnu}' >> %{buildr %{_prefix}/lib/systemd/system-preset/* %{_prefix}/lib/systemd/user-preset/* %{_prefix}/lib/sysctl.d/50-redhat.conf -%if 0%{?x86_64_v2} == 1 -%config(noreplace) %{_sysconfdir}/rpm/macros.arch_v2 +%config(noreplace) %{_sysconfdir}/rpm/macros.include_frame_pointers +%ifarch x86_64_v2 +%config(noreplace) %{_sysconfdir}/rpm/macros.x86_64_v2 %endif %files -n almalinux-sb-certs