mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
ocaml: Use OCAMLOPTFLAGS when compiling .cmx (ie. native code) files.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user