[libvirt PATCH 174/351] meson: src: build libvirt_driver_nodedev.so shared module

Pavel Hrdina phrdina at redhat.com
Thu Jul 16 09:56:50 UTC 2020


Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
---
 src/node_device/Makefile.inc.am |  5 -----
 src/node_device/meson.build     | 10 ++++++++++
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/src/node_device/Makefile.inc.am b/src/node_device/Makefile.inc.am
index d3261cb15c4..d7d80f61fbb 100644
--- a/src/node_device/Makefile.inc.am
+++ b/src/node_device/Makefile.inc.am
@@ -12,11 +12,6 @@ STATEFUL_DRIVER_SOURCE_FILES += \
 
 
 if WITH_NODE_DEVICES
-libvirt_driver_nodedev_la_SOURCES =
-libvirt_driver_nodedev_la_LIBADD = libvirt_driver_nodedev_impl.la
-libvirt_driver_nodedev_la_LDFLAGS = $(AM_LDFLAGS_MOD_NOUNDEF)
-mod_LTLIBRARIES += libvirt_driver_nodedev.la
-
 sbin_PROGRAMS += virtnodedevd
 
 nodist_conf_DATA += node_device/virtnodedevd.conf
diff --git a/src/node_device/meson.build b/src/node_device/meson.build
index 4ee64f56433..00fa7e0ea9c 100644
--- a/src/node_device/meson.build
+++ b/src/node_device/meson.build
@@ -28,4 +28,14 @@ if conf.has('WITH_NODE_DEVICES')
       conf_inc_dir,
     ],
   )
+
+  virt_modules += {
+    'name': 'virt_driver_nodedev',
+    'link_whole': [
+      node_device_driver_impl,
+    ],
+    'link_args': [
+      libvirt_no_undefined,
+    ],
+  }
 endif
-- 
2.26.2




More information about the libvir-list mailing list