resize: Link with local copy of guestfs.
authorRichard W.M. Jones <rjones@redhat.com>
Sat, 9 Apr 2011 21:50:15 +0000 (22:50 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Sat, 9 Apr 2011 21:50:15 +0000 (22:50 +0100)
resize/Makefile.am

index 1d341d8..3740a4a 100644 (file)
@@ -42,12 +42,12 @@ OBJECTS = \
 
 bin_SCRIPTS = virt-resize
 
-OCAMLPACKAGES = -package guestfs,pcre
+OCAMLPACKAGES = -package pcre -I ../ocaml
 OCAMLCFLAGS = -g -warn-error CDEFLMPSUVYZX $(OCAMLPACKAGES)
 OCAMLOPTFLAGS = $(OCAMLCFLAGS)
 
 virt-resize: $(OBJECTS)
-       $(OCAMLFIND) ocamlopt $(OCAMLOPTFLAGS) -linkpkg $^ -o $@
+       $(OCAMLFIND) ocamlopt $(OCAMLOPTFLAGS) mlguestfs.cmxa -linkpkg $^ -o $@
 
 .mli.cmi:
        $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) -c $< -o $@