sparsify: Fix automake build.

Previous commit 97c57a8887 added a
potential bug in the sparsify build.  If virt-sparsify had used a
*.mli file then it would have tried to run a command like:

 ocamlc mlguestfs.cmxa -c foo.mli -o foo.cmi

This would fail because ocamlc doesn't know about native code
libraries (*.cmxa).  In fact virt-sparsify was not affected by this
because it doesn't use any *.mli files.

Fix this by adjusting the automake variables.
This commit is contained in:
Richard W.M. Jones
2014-04-14 11:42:33 +01:00
parent c78b932199
commit 8f3959e581

View File

@@ -75,12 +75,11 @@ OCAMLFLAGS = -g -warn-error CDEFLMPSUVYZX
if !HAVE_OCAMLOPT
OBJECTS = $(BOBJECTS)
BEST = c
OCAMLLINKFLAGS = -custom
OCAMLPACKAGES += mlguestfs.cma
OCAMLLINKFLAGS = mlguestfs.cma -custom
else
OBJECTS = $(XOBJECTS)
BEST = opt
OCAMLPACKAGES += mlguestfs.cmxa
OCAMLLINKFLAGS = mlguestfs.cmxa
endif
virt_sparsify_DEPENDENCIES = $(OBJECTS)