From 2e219394d67030a6d0a7d6920ad1e19722b2d967 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sun, 17 Jun 2012 23:13:22 +0100 Subject: ocaml: Use OCAMLOPTFLAGS when compiling .cmx (ie. native code) files. (cherry picked from commit dd216fedbdacfd641c2da4073ae26d3ccb6098a6) --- resize/Makefile.am | 2 +- sparsify/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resize/Makefile.am b/resize/Makefile.am index bd15a329..1ea3bfae 100644 --- a/resize/Makefile.am +++ b/resize/Makefile.am @@ -62,7 +62,7 @@ virt-resize: $(OBJECTS) .ml.cmo: $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) -c $< -o $@ .ml.cmx: - $(OCAMLFIND) ocamlopt $(OCAMLCFLAGS) -c $< -o $@ + $(OCAMLFIND) ocamlopt $(OCAMLOPTFLAGS) -c $< -o $@ # automake will decide we don't need C support in this file. Really # we do, so we have to provide it ourselves. diff --git a/sparsify/Makefile.am b/sparsify/Makefile.am index efe8278d..068a5468 100644 --- a/sparsify/Makefile.am +++ b/sparsify/Makefile.am @@ -61,7 +61,7 @@ virt-sparsify: $(OBJECTS) .ml.cmo: $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) -c $< -o $@ .ml.cmx: - $(OCAMLFIND) ocamlopt $(OCAMLCFLAGS) -c $< -o $@ + $(OCAMLFIND) ocamlopt $(OCAMLOPTFLAGS) -c $< -o $@ # automake will decide we don't need C support in this file. Really # we do, so we have to provide it ourselves. -- cgit