meson: src: build libvirt_storage_driver.so shared module

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
This commit is contained in:
Pavel Hrdina 2020-06-22 15:48:09 +02:00
parent 0cc73eba39
commit 06b38f49f7
3 changed files with 10 additions and 10 deletions

View File

@ -25,7 +25,6 @@ nodist_conf_DATA =
DRIVER_SOURCE_FILES =
STATEFUL_DRIVER_SOURCE_FILES =
noinst_LTLIBRARIES =
mod_LTLIBRARIES =
INSTALL_DATA_DIRS =
INSTALL_DATA_LOCAL =
UNINSTALL_LOCAL =

View File

@ -86,15 +86,6 @@ storagefiledir = $(libdir)/libvirt/storage-file
storagefile_LTLIBRARIES =
if WITH_STORAGE
libvirt_driver_storage_la_SOURCES =
libvirt_driver_storage_la_LIBADD = \
libvirt_driver_storage_impl.la \
libvirt.la \
$(GLIB_LIBS) \
$(NULL)
mod_LTLIBRARIES += libvirt_driver_storage.la
libvirt_driver_storage_la_LDFLAGS = $(AM_LDFLAGS_MOD_NOUNDEF)
sbin_PROGRAMS += virtstoraged
nodist_conf_DATA += storage/virtstoraged.conf

View File

@ -24,4 +24,14 @@ if conf.has('WITH_STORAGE')
conf_inc_dir,
],
)
virt_modules += {
'name': 'virt_driver_storage',
'link_whole': [
storage_driver_impl_lib,
],
'link_args': [
libvirt_no_undefined,
],
}
endif