Add conditional support for always including frame pointers
If `%_include_frame_pointers` is defined, add `-Cforce-frame-pointers=yes` to the compiler flags to ensure frame pointers are always included. This is in preparation for https://fedoraproject.org/wiki/Changes/fno-omit-frame-pointer See https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/230 for the corresponding implementation in redhat-rpm-config.
This commit is contained in:
parent
d9aa58b6cb
commit
c2176f219f
1 changed files with 1 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
||||||
-Copt-level=%rustflags_opt_level
|
-Copt-level=%rustflags_opt_level
|
||||||
-Cdebuginfo=%rustflags_debuginfo
|
-Cdebuginfo=%rustflags_debuginfo
|
||||||
-Ccodegen-units=%rustflags_codegen_units
|
-Ccodegen-units=%rustflags_codegen_units
|
||||||
|
%{?_include_frame_pointers:-Cforce-frame-pointers=yes}
|
||||||
-Clink-arg=-Wl,-z,relro
|
-Clink-arg=-Wl,-z,relro
|
||||||
-Clink-arg=-Wl,-z,now
|
-Clink-arg=-Wl,-z,now
|
||||||
%{?_package_note_file:-Clink-arg=-Wl,-dT,%{_package_note_file}}
|
%{?_package_note_file:-Clink-arg=-Wl,-dT,%{_package_note_file}}
|
||||||
|
|
Loading…
Reference in a new issue