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