From: Michal Privoznik Date: Mon, 3 Feb 2014 16:50:32 +0000 (+0100) Subject: virnetdevbandwidthtest: Link with libxml2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=defec0de5fb9af3ed38906050a119b6b899bc2c1;p=libvirt.git virnetdevbandwidthtest: Link with libxml2 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. --- diff --git a/tests/Makefile.am b/tests/Makefile.am index cfc0905ad5..91c385ec3a 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -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 = \