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

2024-10-25 Thread Philippe Mathieu-Daudé
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 onl

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

2024-10-24 Thread Alex Bennée
Paolo Bonzini writes: > 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 ev

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

2024-10-21 Thread Paolo Bonzini
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. Supe