Enable frame pointers by default
This commit is contained in:
parent
f1687dbc47
commit
f080fb9562
@ -304,8 +304,15 @@ to `%build_ldfags`, but the linker script would still be generated.
|
|||||||
|
|
||||||
### Frame pointers
|
### Frame pointers
|
||||||
|
|
||||||
Frame pointers will be included by default if the `%_include_frame_pointers`
|
Frame pointers will be included by default via the `%_include_frame_pointers`
|
||||||
macro is defined.
|
macro. To opt out, the best way is to undefine the macro. Include this in the
|
||||||
|
spec file:
|
||||||
|
|
||||||
|
%undefine _include_frame_pointers
|
||||||
|
|
||||||
|
Note that opting out might still result in frame pointers being included on
|
||||||
|
architectures where they are part of the ABI (e.g. aarch64) depending on
|
||||||
|
compiler defaults.
|
||||||
|
|
||||||
### Post-build ELF object processing
|
### Post-build ELF object processing
|
||||||
|
|
||||||
|
4
macros
4
macros
@ -336,8 +336,8 @@ print(result)
|
|||||||
|
|
||||||
# Always include frame pointer information
|
# Always include frame pointer information
|
||||||
# https://fedoraproject.org/wiki/Changes/fno-omit-frame-pointer
|
# https://fedoraproject.org/wiki/Changes/fno-omit-frame-pointer
|
||||||
# Use "%define _include_frame_pointers 1" to enable.
|
# Use "%undefine _include_frame_pointers" to disable.
|
||||||
#%_include_frame_pointers 1
|
%_include_frame_pointers 1
|
||||||
%_frame_pointers_cflags %{?_include_frame_pointers:-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer}
|
%_frame_pointers_cflags %{?_include_frame_pointers:-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer}
|
||||||
|
|
||||||
# Fail linking if there are undefined symbols. Required for proper
|
# Fail linking if there are undefined symbols. Required for proper
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# 2) When making changes, increment the version (in baserelease) by 1.
|
# 2) When making changes, increment the version (in baserelease) by 1.
|
||||||
# rpmdev-bumpspec and other tools update the macro below, which is used
|
# rpmdev-bumpspec and other tools update the macro below, which is used
|
||||||
# in Version: to get the desired effect.
|
# in Version: to get the desired effect.
|
||||||
%global baserelease 238
|
%global baserelease 239
|
||||||
|
|
||||||
Summary: Red Hat specific rpm configuration files
|
Summary: Red Hat specific rpm configuration files
|
||||||
Name: redhat-rpm-config
|
Name: redhat-rpm-config
|
||||||
@ -221,6 +221,9 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/fedora/srpm forge.lua
|
|||||||
%doc buildflags.md
|
%doc buildflags.md
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 4 2023 Davide Cavalca <dcavalca@fedoraproject.org> - 239-1
|
||||||
|
- Enable frame pointers by default
|
||||||
|
|
||||||
* Tue Jan 3 2023 Miro Hrončok <mhroncok@redhat.com> - 238-1
|
* Tue Jan 3 2023 Miro Hrončok <mhroncok@redhat.com> - 238-1
|
||||||
- Set %%source_date_epoch_from_changelog to 1
|
- Set %%source_date_epoch_from_changelog to 1
|
||||||
- https://fedoraproject.org/wiki/Changes/ReproducibleBuildsClampMtimes
|
- https://fedoraproject.org/wiki/Changes/ReproducibleBuildsClampMtimes
|
||||||
|
Loading…
Reference in New Issue
Block a user