]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virschematest: Link with libxml2
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 8 Jun 2016 11:25:08 +0000 (13:25 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 8 Jun 2016 11:38:35 +0000 (13:38 +0200)
commit8f2cbe73f30e27b40698fbedede0452f9734223e
tree9d895b66ec9499366694ec9f7b60b2134506d5f6
parent6895068d6d869c54df8efc8cbc69b14c8a58831d
virschematest: Link with libxml2

We use libxml2 APIs in the test (e.g. xmlFreeDoc) but not link
with -lxml2 which can cause problems:

/usr/bin/ld: virschematest.o: undefined reference to symbol 'xmlFreeDoc@@LIBXML2_2.4.30'
//usr/lib/x86_64-linux-gnu/libxml2.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:4702: recipe for target 'virschematest' failed

Reported-by: Katerina Koukiou <k.koukiou@googlemail.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tests/Makefile.am