- Add macros.include_frame_pointers to enable frame pointers

This commit is contained in:
eabdullin 2024-07-10 12:57:39 +03:00
parent fb9988e7e5
commit 30fbe2f863

View File

@ -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