From 3443c98887f019eab11903f1fc76f086cbf0814c Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: Sat, 21 Jan 2023 08:41:53 -0800 Subject: [PATCH] Only enable frame pointers for approved arches --- data/macros.rust | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/macros.rust b/data/macros.rust index 9aa24a8..05d4ee9 100644 --- a/data/macros.rust +++ b/data/macros.rust @@ -10,7 +10,7 @@ -Copt-level=%rustflags_opt_level -Cdebuginfo=%rustflags_debuginfo -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,now %{?_package_note_file:-Clink-arg=-Wl,-dT,%{_package_note_file}}