]> git.ipfire.org Git - thirdparty/qemu.git/commit
stubs: avoid duplicate symbols in libqemuutil.a
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 21 Oct 2024 16:07:16 +0000 (18:07 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 4 Nov 2024 11:33:33 +0000 (14:33 +0300)
commite69b2c679030300023e4261633537c86a0ddaee9
tree3d0fb82bb26b9c51a57f725fe32dbee8f8ac8281
parent13d162d4d098999e6b08c648ed9728ac4b61648e
stubs: avoid duplicate symbols in libqemuutil.a

qapi_event_send_device_deleted is always included (together with the
rest of QAPI) in libqemuutil.a if either system-mode emulation or tools
are being built, and in that case the stub causes a duplicate symbol
to appear in libqemuutil.a.

Add the symbol only if events are not being requested.

Cc: qemu-stable@nongnu.org
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 388b849fb6c33882b481123568995a749a54f648)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
stubs/meson.build