summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-06-17 23:13:22 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-06-18 15:32:38 +0100
commitdd216fedbdacfd641c2da4073ae26d3ccb6098a6 (patch)
treecf974cde53e5559e424ab44acd11abede887de25
parent87de36670108a19b832e8f5ded8d413e7b575d70 (diff)
downloadlibguestfs-dd216fedbdacfd641c2da4073ae26d3ccb6098a6.tar.gz
libguestfs-dd216fedbdacfd641c2da4073ae26d3ccb6098a6.tar.xz
libguestfs-dd216fedbdacfd641c2da4073ae26d3ccb6098a6.zip
ocaml: Use OCAMLOPTFLAGS when compiling .cmx (ie. native code) files.
-rw-r--r--resize/Makefile.am2
-rw-r--r--sparsify/Makefile.am2
-rw-r--r--sysprep/Makefile.am2
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