mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user