]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: Tweak vircapstest_LDADD
authorAndrea Bolognani <abologna@redhat.com>
Wed, 12 Jun 2019 09:42:39 +0000 (11:42 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 12 Jun 2019 18:31:18 +0000 (20:31 +0200)
We optionally include QEMU and LXC support in this test and
depending on which is enabled (if either is enabled at all) we
need to link in different objects.

Right now we implicitly depend on the fact that qemu_LDADDS is
empty when QEMU is not enabled to get the correct set of objects,
but it's better to be explicit about it.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
tests/Makefile.am

index c34cfba34c6c0959fb8965bb547ecad3827710bb..f9dbf9a0f694d47a9b4170a92bd2acddf3e29f66 100644 (file)
@@ -1029,7 +1029,11 @@ endif WITH_LXC
 if WITH_QEMU
 vircapstest_SOURCES += testutilsqemu.c testutilsqemu.h
 endif WITH_QEMU
+if WITH_QEMU
 vircapstest_LDADD = $(qemu_LDADDS) $(LDADDS)
+else ! WITH_QEMU
+vircapstest_LDADD = $(LDADDS)
+endif ! WITH_QEMU
 
 domaincapsmock_la_SOURCES = domaincapsmock.c
 domaincapsmock_la_LDFLAGS = $(MOCKLIBS_LDFLAGS)