qemu-stable
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] stubs: avoid duplicate symbols in libqemuutil.a


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH] stubs: avoid duplicate symbols in libqemuutil.a
Date: Thu, 24 Oct 2024 14:34:43 -0300
User-agent: Mozilla Thunderbird

On 21/10/24 13:34, Paolo Bonzini wrote:
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.

Supersedes: <20241018143334.949045-1-pbonzini@redhat.com>

strip ^

Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
         v1 fails to build with --disable-system --disable-tools, which I
         have now noticed in CI.

  stubs/meson.build | 7 ++++++-
  1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/stubs/meson.build b/stubs/meson.build
index 772a3e817df..e91614a874d 100644
--- a/stubs/meson.build
+++ b/stubs/meson.build
@@ -55,7 +55,12 @@ endif
  if have_user
    # Symbols that are used by hw/core.
    stub_ss.add(files('cpu-synchronize-state.c'))
-  stub_ss.add(files('qdev.c'))
+
+  # Stubs for QAPI events.  Those can always be included in the build, but
+  # they are not built at all for --disable-system --disable-tools builds.
+  if not (have_system or have_tools)
+    stub_ss.add(files('qdev.c'))
+  endif
  endif
if have_system




reply via email to

[Prev in Thread] Current Thread [Next in Thread]