]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: src: build libvirt_driver_nodedev.so shared module
authorPavel Hrdina <phrdina@redhat.com>
Wed, 24 Jun 2020 10:44:09 +0000 (12:44 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 3 Aug 2020 07:27:04 +0000 (09:27 +0200)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
src/node_device/Makefile.inc.am
src/node_device/meson.build

index d3261cb15c49b2d51d13b78c21c80dda47b9f8ec..d7d80f61fbbdf3cbc706234a82880161e762fb82 100644 (file)
@@ -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
index 4ee64f56433faab97f66a469d91b996391d42f0e..00fa7e0ea9c63550cb494cfce9a55067e67882d5 100644 (file)
@@ -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