From cec11e3cd81f1139491d7d4242dbf97eb5f45127 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 10 Jul 2023 22:43:58 +0100 Subject: [PATCH] --enable-frame-pointers only works on x86-64 --- ocaml.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ocaml.spec b/ocaml.spec index 544a857..4efd357 100644 --- a/ocaml.spec +++ b/ocaml.spec @@ -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}' \