Signed-off-by: Pavel Hrdina <phrdina(a)redhat.com>
---
src/nwfilter/Makefile.inc.am | 7 -------
src/nwfilter/meson.build | 10 ++++++++++
2 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/src/nwfilter/Makefile.inc.am b/src/nwfilter/Makefile.inc.am
index ba07992027c..d853282b705 100644
--- a/src/nwfilter/Makefile.inc.am
+++ b/src/nwfilter/Makefile.inc.am
@@ -11,13 +11,6 @@ if WITH_NWFILTER
nwfilterxmldir = $(sysconfdir)/libvirt/nwfilter
nwfilterxml_DATA = $(NWFILTER_XML_FILES)
-libvirt_driver_nwfilter_la_SOURCES =
-libvirt_driver_nwfilter_la_LIBADD = \
- libvirt_driver_nwfilter_impl.la \
- libvirt.la
-mod_LTLIBRARIES += libvirt_driver_nwfilter.la
-libvirt_driver_nwfilter_la_LDFLAGS = $(AM_LDFLAGS_MOD_NOUNDEF)
-
sbin_PROGRAMS += virtnwfilterd
nodist_conf_DATA += nwfilter/virtnwfilterd.conf
diff --git a/src/nwfilter/meson.build b/src/nwfilter/meson.build
index fe792058b94..8da853c3ecb 100644
--- a/src/nwfilter/meson.build
+++ b/src/nwfilter/meson.build
@@ -23,4 +23,14 @@ if conf.has('WITH_NWFILTER')
conf_inc_dir,
],
)
+
+ virt_modules += {
+ 'name': 'virt_driver_nwfilter',
+ 'link_whole': [
+ nwfilter_driver_impl,
+ ],
+ 'link_args': [
+ libvirt_no_undefined,
+ ],
+ }
endif
--
2.26.2