1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-12 13:17:58 +03:00

meson: src: build virt-qemu-run binary

-export-dynamic is provided by src_dep

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 17:45:29 +02:00
parent dab71cfe98
commit b984a2fb89
3 changed files with 12 additions and 15 deletions

View File

@ -44,7 +44,6 @@ OPENRC_INIT_FILES =
OPENRC_INIT_FILES_IN =
OPENRC_CONF_FILES =
SYSCONF_FILES =
bin_PROGRAMS =
COMMON_UNIT_VARS = \
-e 's|[@]runstatedir[@]|$(runstatedir)|g' \

View File

@ -101,17 +101,3 @@ endif WITH_QEMU
install-data-qemu \
uninstall-data-qemu \
$(NULL)
QEMU_SHIM_SOURCES = qemu/qemu_shim.c
if WITH_QEMU
bin_PROGRAMS += virt-qemu-run
virt_qemu_run_SOURCES = $(QEMU_SHIM_SOURCES)
virt_qemu_run_LDADD = \
libvirt.la \
$(GLIB_LIBS) \
$(NULL)
virt_qemu_run_LDFLAGS = -export-dynamic
endif WITH_QEMU

View File

@ -74,6 +74,10 @@ if conf.has('WITH_DTRACE_PROBES')
)
endif
qemu_shim_sources = files(
'qemu_shim.c',
)
if conf.has('WITH_QEMU')
qemu_driver_impl = static_library(
'virt_driver_qemu_impl',
@ -117,4 +121,12 @@ if conf.has('WITH_QEMU')
'-DMODULE_NAME="qemu"',
],
}
virt_helpers += {
'name': 'virt-qemu-run',
'sources': [
qemu_shim_sources
],
'install_dir': bindir,
}
endif