Signed-off-by: Pavel Hrdina <phrd...@redhat.com>
---
 src/bhyve/Makefile.inc.am |  9 ---------
 src/bhyve/meson.build     | 10 ++++++++++
 2 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/src/bhyve/Makefile.inc.am b/src/bhyve/Makefile.inc.am
index 3433e6a3dab..40384e1c714 100644
--- a/src/bhyve/Makefile.inc.am
+++ b/src/bhyve/Makefile.inc.am
@@ -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
diff --git a/src/bhyve/meson.build b/src/bhyve/meson.build
index a9af677440b..83d8c366635 100644
--- a/src/bhyve/meson.build
+++ b/src/bhyve/meson.build
@@ -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
-- 
2.26.2

Reply via email to