From dd216fedbdacfd641c2da4073ae26d3ccb6098a6 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. --- resize/Makefile.am | 2 +- sparsify/Makefile.am | 2 +- sysprep/Makefile.am | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resize/Makefile.am b/resize/Makefile.am index d23b4dee..00f5e350 100644 --- a/resize/Makefile.am +++ b/resize/Makefile.am @@ -67,7 +67,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 7de66b72..72cb2bb3 100644 --- a/sparsify/Makefile.am +++ b/sparsify/Makefile.am @@ -66,7 +66,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. diff --git a/sysprep/Makefile.am b/sysprep/Makefile.am index 2afd4068..fff8e648 100644 --- a/sysprep/Makefile.am +++ b/sysprep/Makefile.am @@ -124,7 +124,7 @@ virt-sysprep: $(OBJECTS) .ml.cmo: $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) -c $< -o $@ .ml.cmx: - $(OCAMLFIND) ocamlopt $(OCAMLCFLAGS) -c $< -o $@ + $(OCAMLFIND) ocamlopt $(OCAMLOPTFLAGS) -c $< -o $@ # Manual pages and HTML files for the website. man_MANS = virt-sysprep.1 -- cgit