From f30caafe4a8dbf869bc5cf8ff16b868db4b2f0b8 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 16 Sep 2017 10:35:46 +0100 Subject: [PATCH] Fix builds on non-native architectures (s390). --- ocaml-ocamlbuild.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ocaml-ocamlbuild.spec b/ocaml-ocamlbuild.spec index e6781a5..2b67cbb 100644 --- a/ocaml-ocamlbuild.spec +++ b/ocaml-ocamlbuild.spec @@ -55,8 +55,13 @@ make configure \ # Parallel builds fail. make \ +%ifarch %{ocaml_native_compiler} OCAMLC="ocamlc.opt -g" \ OCAMLOPT="ocamlopt.opt -g" +%else + OCAMLC="ocamlc -g" \ + OCAMLOPT="ocamlopt -g" +%endif %install