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-21 12:51:21 +0100
commita41a5a6fef47c9b21826363445701e633ed141a8 (patch)
treedda1ee20cd57aee8096cf9cddf084ac56a5b01ab
parentc62f7851fe17141f44fcac237d02b9431d5be2d0 (diff)
downloadlibguestfs-a41a5a6fef47c9b21826363445701e633ed141a8.tar.gz
libguestfs-a41a5a6fef47c9b21826363445701e633ed141a8.tar.xz
libguestfs-a41a5a6fef47c9b21826363445701e633ed141a8.zip
ocaml: Use OCAMLOPTFLAGS when compiling .cmx (ie. native code) files.
(cherry picked from commit dd216fedbdacfd641c2da4073ae26d3ccb6098a6)
-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 4f49ad30..7dad06c1 100644
--- a/sysprep/Makefile.am
+++ b/sysprep/Makefile.am
@@ -122,7 +122,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