From: Michal Privoznik Date: Fri, 3 Oct 2014 11:59:12 +0000 (+0200) Subject: Makefile: Fix build without driver modules X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b4022de33ac9282946fab37e14bc66b160ee3bf4;p=libvirt.git Makefile: Fix build without driver modules After 87dea4fcf one can observe a build failure: ./autogen.sh --system --without-driver-modules && make CCLD libvirtd ../src/.libs/libvirt_driver_vbox.a(libvirt_driver_vbox_impl_la-vbox_driver.o): In function `vboxNetworkRegister': /home/jtomko/work/libvirt/libvirt.git/src/vbox/vbox_driver.c:168: undefined reference to `vboxGetNetworkDriver' collect2: error: ld returned 1 exit status make[3]: *** [libvirtd] Error 1 The problem is that when building without driver modules the VBOX network driver is not linked into the the VBOX driver. Signed-off-by: Michal Privoznik --- diff --git a/src/Makefile.am b/src/Makefile.am index 5e8cd4a5ac..188cd2942c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1171,6 +1171,7 @@ noinst_LTLIBRARIES += libvirt_driver_vbox.la # GPLv2-only license requries that it be linked into # libvirtd and *not* libvirt.so #libvirt_la_BUILT_LIBADD += libvirt_driver_vbox.la +libvirt_driver_vbox_la_LIBADD += libvirt_driver_vbox_network_impl.la endif ! WITH_DRIVER_MODULES libvirt_driver_vbox_impl_la_CFLAGS = \