--enable-frame-pointers only works on x86-64

This commit is contained in:
Richard W.M. Jones 2023-07-10 22:43:58 +01:00
parent 68671b2fe6
commit cec11e3cd8

View File

@ -230,8 +230,10 @@ sed -i '/ld_opts/s|\[\]|["%{build_ldflags}"]|' tools/ocamlmklib.ml
%if %{native_compiler}
--enable-native-toplevel \
%endif
%ifarch x86_64
%if 0%{?_include_frame_pointers}
--enable-frame-pointers \
%endif
%endif
OC_CFLAGS='%{build_cflags}' \
OC_LDFLAGS='%{build_ldflags}' \