]> xenbits.xensource.com Git - libvirt.git/commit
tests: Avoid double linking some libraries
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 3 Jul 2014 12:09:55 +0000 (14:09 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 3 Jul 2014 12:58:06 +0000 (14:58 +0200)
commitfb8bc6becdda9f068b4fddea22b13dafd544a57b
treeabbced368d0a2d61c4cd1801ff59e73995d0b6f4
parent94e3f23e8a72dadb2ab60d8a00d77fb9c49de87e
tests: Avoid double linking some libraries

The problem is, since 614581f32b domaincapstest is linked with
$(LDADDS) by default. Then, since 94e3f23e8a7 the test may be
conditionally linked with $(qemu_LDADDS) which already contains
$(LDADDS). And some linkers doesn't cope with this nicely:

  CCLD     domaincapstest
../src/libvirt_probes.o:(.probes+0x0): multiple definition of `libvirt_event_poll_add_handle_semaphore'
../src/libvirt_probes.o:(.probes+0x0): first defined here
../src/libvirt_probes.o:(.probes+0x2): multiple definition of `libvirt_event_poll_update_handle_semaphore'
../src/libvirt_probes.o:(.probes+0x2): first defined here
../src/libvirt_probes.o:(.probes+0x4): multiple definition of `libvirt_event_poll_remove_handle_semaphore'
../src/libvirt_probes.o:(.probes+0x4): first defined here
../src/libvirt_probes.o:(.probes+0x6): multiple definition of `libvirt_event_poll_dispatch_handle_semaphore'
../src/libvirt_probes.o:(.probes+0x6): first defined here

And so on.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tests/Makefile.am