From b4022de33ac9282946fab37e14bc66b160ee3bf4 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Fri, 3 Oct 2014 13:59:12 +0200 Subject: [PATCH] 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 --- src/Makefile.am | 1 + 1 file changed, 1 insertion(+) 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 = \