]> xenbits.xensource.com Git - libvirt.git/commitdiff
virnetdevbandwidthtest: Link with libxml2
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 3 Feb 2014 16:50:32 +0000 (17:50 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 3 Feb 2014 16:50:32 +0000 (17:50 +0100)
I've received a notice over IRC that on some systems, the
virnetdevbandwidthtest is not linked with libxml:

  /usr/bin/ld: virnetdevbandwidthtest.o: undefined reference to symbol 'xmlStrEqual@@LIBXML2_2.4.30'
  /usr/lib/x86_64-linux-gnu/libxml2.so.2: error adding symbols: DSO missing from command line

Trivial way avoiding this is to add LIBXML_LIBS to
virnetdevbandwidthtest_LDADD.

tests/Makefile.am

index cfc0905ad5ea4fa55d51ce1cf2dc0906ac83507b..91c385ec3a7a703a4c38e0ae271ca36c00c88c9b 100644 (file)
@@ -658,7 +658,7 @@ commandhelper_LDFLAGS = -static
 
 virnetdevbandwidthtest_SOURCES = \
        virnetdevbandwidthtest.c testutils.h testutils.c
-virnetdevbandwidthtest_LDADD = $(LDADDS)
+virnetdevbandwidthtest_LDADD = $(LDADDS) $(LIBXML_LIBS)
 
 if WITH_LIBVIRTD
 libvirtdconftest_SOURCES = \