df: Missing direct dependency on libvirt.
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 26 Nov 2010 16:49:54 +0000 (16:49 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 26 Nov 2010 16:51:01 +0000 (16:51 +0000)
virt-df has an (optional) direct dependency on libvirt.  Because of
libtool's over-linking behaviour this was being missed.

df/Makefile.am

index f148e6c..053261d 100644 (file)
@@ -47,11 +47,14 @@ virt_df_CFLAGS = \
        -I$(top_srcdir)/fish \
        -I$(srcdir)/../gnulib/lib -I../gnulib/lib \
        -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
-       $(WARN_CFLAGS) $(WERROR_CFLAGS)
+       $(WARN_CFLAGS) $(WERROR_CFLAGS) \
+       $(LIBVIRT_CFLAGS)
 
 virt_df_LDADD = \
        $(top_builddir)/src/libguestfs.la \
-       ../gnulib/lib/libgnu.la -lm
+       ../gnulib/lib/libgnu.la \
+       $(LIBVIRT_LIBS) \
+       -lm
 
 # Manual pages and HTML files for the website.
 man_MANS = virt-df.1