From: =?utf-8?q?Ga=C3=ABtan_Dubreil?= <gaetan.dubreil@free.fr>
Date: Tue, 13 Aug 2019 22:00:46 +0200
Subject: [PATCH] Fix build on bytecode architecture (#27)

---
 src/Makefile.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Makefile.in b/src/Makefile.in
index 152fbf3..05ebe19 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -62,8 +62,8 @@ byte: byte-code-library
 opt: native-code-library
 
 gen-code:
-	$(SYSTEM_OCAMLOPT) -c gen_code_stubs.c
-	$(SYSTEM_OCAMLOPT) str.cmxa gen_code_stubs.o gen_code.ml -o gen_code
+	$(OCAMLC) -c gen_code_stubs.c
+	$(OCAMLC) -custom str.cma gen_code_stubs.o gen_code.ml -o gen_code
 	./gen_code -I$(GEN_CODE_INCLUDE)
 
 install: libinstall
