Signed-off-by: Pavel Hrdina <phrdina(a)redhat.com>
---
src/lxc/Makefile.inc.am | 10 ----------
src/lxc/meson.build | 10 ++++++++++
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/lxc/Makefile.inc.am b/src/lxc/Makefile.inc.am
index b0a12fdda50..3bf8d9dfb05 100644
--- a/src/lxc/Makefile.inc.am
+++ b/src/lxc/Makefile.inc.am
@@ -47,16 +47,6 @@ STATEFUL_DRIVER_SOURCE_FILES += \
if WITH_LXC
-libvirt_driver_lxc_la_SOURCES =
-libvirt_driver_lxc_la_LIBADD = \
- libvirt_driver_lxc_impl.la \
- libvirt.la \
- $(GLIB_LIBS) \
- $(NULL)
-mod_LTLIBRARIES += libvirt_driver_lxc.la
-libvirt_driver_lxc_la_LDFLAGS = $(AM_LDFLAGS_MOD_NOUNDEF)
-
-
sbin_PROGRAMS += virtlxcd
nodist_conf_DATA += lxc/virtlxcd.conf
diff --git a/src/lxc/meson.build b/src/lxc/meson.build
index 438cedd287c..5d8a20bd9f7 100644
--- a/src/lxc/meson.build
+++ b/src/lxc/meson.build
@@ -64,4 +64,14 @@ if conf.has('WITH_LXC')
hypervisor_inc_dir,
],
)
+
+ virt_modules += {
+ 'name': 'virt_driver_lxc',
+ 'link_whole': [
+ lxc_driver_impl_lib,
+ ],
+ 'link_args': [
+ libvirt_no_undefined,
+ ],
+ }
endif
--
2.26.2