From b67caaf64efdc6c96ca4431b6844f294c6c38a7c Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 14 Sep 2013 11:59:50 +0000 Subject: [PATCH] Enable debugging for ocamlopt-generated code. --- Makefile.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile.in b/Makefile.in index cb71f5a..d040f4c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -42,8 +42,8 @@ enable_coverage = @enable_coverage@ OCAMLCFLAGS = -g OCAMLCPACKAGES = OCAMLCLIBS = -linkpkg -OCAMLOPTFLAGS = -OCAMLOPTPACKAGES = +OCAMLOPTFLAGS = $(OCAMLCFLAGS) +OCAMLOPTPACKAGES = $(OCAMLCPACKAGES) OCAMLOPTLIBS = -linkpkg ifneq ($(enable_coverage),no) @@ -88,7 +88,7 @@ bitstring.cma: bitstring_types.cmo bitstring_config.cmo \ $(OCAMLMKLIB) -o bitstring $^ bitstring_persistent.cma: bitstring_persistent.cmo - $(OCAMLFIND) ocamlc -a -o $@ $^ + $(OCAMLFIND) ocamlc -a $(OCAMLCFLAGS) -o $@ $^ bitstring_persistent.cmo: bitstring_persistent.ml $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) $(OCAMLCPACKAGES) \ @@ -99,7 +99,7 @@ bitstring.cmxa: bitstring_types.cmx bitstring_config.cmx \ $(OCAMLMKLIB) -o bitstring $^ bitstring_persistent.cmxa: bitstring_persistent.cmx - $(OCAMLFIND) ocamlopt -a -o $@ $^ + $(OCAMLFIND) ocamlopt -a $(OCAMLOPTFLAGS) -o $@ $^ bitstring_persistent.cmx: bitstring_persistent.ml $(OCAMLFIND) ocamlopt $(OCAMLOPTFLAGS) $(OCAMLOPTPACKAGES) \ @@ -115,7 +115,7 @@ pa_bitstring.cmo: pa_bitstring.ml bitstring.cma bitstring_persistent.cma bitstring-objinfo: bitstring_objinfo.cmo bitstring.cma bitstring_persistent.cma $(OCAMLFIND) ocamlc -I +camlp4 unix.cma dynlink.cma camlp4lib.cma \ - $(OCAMLCLIBS) \ + $(OCAMLCFLAGS) $(OCAMLCLIBS) \ bitstring.cma bitstring_persistent.cma \ $< -o $@ -- 1.8.3.1