]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: silence libtool during tests
authorEric Blake <eblake@redhat.com>
Fri, 25 May 2012 19:18:10 +0000 (13:18 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 28 May 2012 13:19:25 +0000 (07:19 -0600)
commit1d22ba953b646d8681c334abd30f1a2e5441a720
tree60d00a649d6173e329b76ee050556951d6ad3521
parent1e8ecfedeb41d229d43f720de83a85380fa70d66
build: silence libtool during tests

Libtool is picky about linking against a module library (aka a .so);
giving lots of warnings like this in the tests directory:

  CCLD   networkxml2argvtest

*** Warning: Linking the executable networkxml2argvtest against the loadable module
*** libvirt_driver_network.so is not portable!

Fix that by splitting things into a convenience library which can
be used directly by the tests, and making the real .so just wrap
the convenience library.

Based on a suggestion by Daniel P. Berrange.

* configure.ac (--with-driver-modules): Fix help test.
* src/Makefile.am (libvirt_driver_xen.la, libvirt_driver_libxl.la)
(libvirt_driver_qemu.la, libvirt_driver_lxc.la)
(libvirt_driver_uml.la): Factor into new convenience libraries.
* tests/Makefile.am (xen_LDADDS, qemu_LDADDS, lxc_LDADDS)
(networkxml2argvtest_LDADD): Link to convenience libraries, not
shared libraries.
configure.ac
src/Makefile.am
tests/Makefile.am