mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
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>
This commit is contained in:
parent
6895068d6d
commit
8f2cbe73f3
@ -1000,7 +1000,7 @@ virtimetest_LDADD = $(LDADDS)
|
||||
|
||||
virschematest_SOURCES = \
|
||||
virschematest.c testutils.h testutils.c
|
||||
virschematest_LDADD = $(LDADDS)
|
||||
virschematest_LDADD = $(LDADDS) $(LIBXML_LIBS)
|
||||
|
||||
virstringtest_SOURCES = \
|
||||
virstringtest.c testutils.h testutils.c
|
||||
|
Loading…
Reference in New Issue
Block a user