lablgtk2: Use auto-init, don't list gtkThread.cm* twice.
authorRichard W.M. Jones <rjones@redhat.com>
Mon, 28 Jan 2013 10:36:19 +0000 (10:36 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 28 Jan 2013 10:36:19 +0000 (10:36 +0000)
Makefile.am

index 4a064f7..a6122eb 100644 (file)
@@ -125,7 +125,7 @@ XOBJECTS = $(OBJECTS:.cmo=.cmx)
 bin_SCRIPTS = guestfs-browser
 
 OCAMLPACKAGES = \
-       -package libvirt,guestfs,hivex,lablgtk2,extlib,xml-light,calendar,camomile,threads,bitstring,bitstring.syntax -syntax bitstring
+       -package libvirt,guestfs,hivex,lablgtk2,lablgtk2.auto-init,extlib,xml-light,calendar,camomile,threads,bitstring,bitstring.syntax -syntax bitstring
 OCAMLCFLAGS = \
        -g \
        -warn-error CDEFLMPSUVYZX \
@@ -144,14 +144,12 @@ OCAMLDOCFLAGS = \
 if HAVE_OCAMLOPT
 guestfs-browser: $(XOBJECTS)
        $(OCAMLFIND) ocamlopt $(OCAMLOPTFLAGS) \
-         -predicates init,threads \
-         -linkpkg gtkThread.cmx \
+         -linkpkg \
          $^ -o $@
 else
 guestfs-browser: $(OBJECTS)
        $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) \
-         -predicates init,threads \
-         -linkpkg gtkThread.cmo \
+         -linkpkg \
          $^ -o $@
 endif