Signed-off-by: Pavel Hrdina <phrdina(a)redhat.com>
---
src/vbox/Makefile.inc.am | 10 ----------
src/vbox/meson.build | 10 ++++++++++
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/vbox/Makefile.inc.am b/src/vbox/Makefile.inc.am
index 19ffff223b1..e61c3df40d6 100644
--- a/src/vbox/Makefile.inc.am
+++ b/src/vbox/Makefile.inc.am
@@ -6,16 +6,6 @@ DRIVER_SOURCE_FILES += \
$(NULL)
if WITH_VBOX
-noinst_LTLIBRARIES += libvirt_driver_vbox_impl.la
-libvirt_driver_vbox_la_SOURCES =
-libvirt_driver_vbox_la_LIBADD = \
- libvirt_driver_vbox_impl.la \
- libvirt.la \
- $(GLIB_LIBS) \
- $(NULL)
-mod_LTLIBRARIES += libvirt_driver_vbox.la
-libvirt_driver_vbox_la_LDFLAGS = $(AM_LDFLAGS_MOD_NOUNDEF)
-
sbin_PROGRAMS += virtvboxd
nodist_conf_DATA += vbox/virtvboxd.conf
diff --git a/src/vbox/meson.build b/src/vbox/meson.build
index c27f9418249..5af671c00cb 100644
--- a/src/vbox/meson.build
+++ b/src/vbox/meson.build
@@ -28,4 +28,14 @@ if conf.has('WITH_VBOX')
conf_inc_dir,
],
)
+
+ virt_modules += {
+ 'name': 'virt_driver_vbox',
+ 'link_whole': [
+ vbox_driver_impl,
+ ],
+ 'link_args': [
+ libvirt_no_undefined,
+ ],
+ }
endif
--
2.26.2