mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:46:17 +00:00
storage-daemon: use same link arguments as other tools
Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Link: https://lore.kernel.org/r/20260327134401.270186-15-kkostiuk@redhat.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
@@ -4505,15 +4505,15 @@ if xkbcommon.found()
|
||||
endif
|
||||
|
||||
if have_tools
|
||||
link_args = enable_modules ? ['@block.syms'] : []
|
||||
tools_link_args = enable_modules ? ['@block.syms'] : []
|
||||
qemu_img = executable('qemu-img', [files('qemu-img.c'), hxdep],
|
||||
link_args: link_args, link_depends: block_syms,
|
||||
link_args: tools_link_args, link_depends: block_syms,
|
||||
dependencies: [authz, block, crypto, io, qom, qemuutil], install: true)
|
||||
qemu_io = executable('qemu-io', files('qemu-io.c'),
|
||||
link_args: link_args, link_depends: block_syms,
|
||||
link_args: tools_link_args, link_depends: block_syms,
|
||||
dependencies: [block, qemuutil], install: true)
|
||||
qemu_nbd = executable('qemu-nbd', files('qemu-nbd.c'),
|
||||
link_args: link_args, link_depends: block_syms,
|
||||
link_args: tools_link_args, link_depends: block_syms,
|
||||
dependencies: [blockdev, qemuutil, selinux],
|
||||
install: true)
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
assert(have_tools)
|
||||
|
||||
qsd_ss = ss.source_set()
|
||||
qsd_ss.add(files('qemu-storage-daemon.c'))
|
||||
qsd_ss.add(blockdev, chardev, qmp, qom, qemuutil)
|
||||
|
||||
subdir('qapi')
|
||||
|
||||
if have_tools
|
||||
qsd_ss = qsd_ss.apply({})
|
||||
qsd = executable('qemu-storage-daemon',
|
||||
qsd_ss.sources(),
|
||||
link_args: '@block.syms', link_depends: block_syms,
|
||||
dependencies: qsd_ss.dependencies(),
|
||||
install: true)
|
||||
endif
|
||||
qsd_ss = qsd_ss.apply({})
|
||||
qsd = executable('qemu-storage-daemon',
|
||||
qsd_ss.sources(),
|
||||
link_args: tools_link_args, link_depends: block_syms,
|
||||
dependencies: qsd_ss.dependencies(),
|
||||
install: true)
|
||||
|
||||
Reference in New Issue
Block a user