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 <mprivozn@redhat.com>
This commit is contained in:
Michal Privoznik 2014-10-03 13:59:12 +02:00
parent 87dea4fcff
commit b4022de33a

View File

@ -1171,6 +1171,7 @@ noinst_LTLIBRARIES += libvirt_driver_vbox.la
# GPLv2-only license requries that it be linked into # GPLv2-only license requries that it be linked into
# libvirtd and *not* libvirt.so # libvirtd and *not* libvirt.so
#libvirt_la_BUILT_LIBADD += libvirt_driver_vbox.la #libvirt_la_BUILT_LIBADD += libvirt_driver_vbox.la
libvirt_driver_vbox_la_LIBADD += libvirt_driver_vbox_network_impl.la
endif ! WITH_DRIVER_MODULES endif ! WITH_DRIVER_MODULES
libvirt_driver_vbox_impl_la_CFLAGS = \ libvirt_driver_vbox_impl_la_CFLAGS = \