Only enable frame pointers for approved arches

This commit is contained in:
Davide Cavalca 2023-01-21 08:41:53 -08:00
parent b5c64f585e
commit 3443c98887

View file

@ -10,7 +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} %{expr:0%{?_include_frame_pointers} && ("%{_arch}" != "ppc64le" && "%{_arch}" != "s390x" && "%{_arch}" != "i386") ? "-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}}