meson: src: build libvirt_driver_bhyve.so shared module

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
This commit is contained in:
Pavel Hrdina 2020-06-22 14:47:19 +02:00
parent 88f3137cae
commit 26526f0045
2 changed files with 10 additions and 9 deletions

View File

@ -4,15 +4,6 @@ DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(BHYVE_DRIVER_SOURCES))
STATEFUL_DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(BHYVE_DRIVER_SOURCES))
if WITH_BHYVE
libvirt_driver_bhyve_la_SOURCES =
libvirt_driver_bhyve_la_LIBADD = \
libvirt_driver_bhyve_impl.la \
libvirt.la \
$(GLIB_LIBS) \
$(NULL)
mod_LTLIBRARIES += libvirt_driver_bhyve.la
libvirt_driver_bhyve_la_LDFLAGS = $(AM_LDFLAGS_MOD_NOUNDEF)
sbin_PROGRAMS += virtbhyved
nodist_conf_DATA += bhyve/virtbhyved.conf

View File

@ -25,4 +25,14 @@ if conf.has('WITH_BHYVE')
hypervisor_inc_dir,
],
)
virt_modules += {
'name': 'virt_driver_bhyve',
'link_whole': [
bhyve_driver_impl,
],
'link_args': [
libvirt_no_undefined,
],
}
endif