On Mon, Dec 15, 2025 at 08:49:54AM +0100, Paolo Bonzini wrote:
> Date: Mon, 15 Dec 2025 08:49:54 +0100
> From: Paolo Bonzini <[email protected]>
> Subject: [PATCH 05/11] rust: only link the Rust part of the code into
>  devices
> X-Mailer: git-send-email 2.52.0
> 
> Do not include libqemuutil in the device crates for the same
> reason as in the previous commit.  Static libraries like qemuutil
> are sensitive to their position on the command line and rustc does not
> always get it right.
> 
> If rustc places the library too early on the command line, the stubs
> are included in the final link product, which results in duplicate
> symbols.
> 
> Signed-off-by: Paolo Bonzini <[email protected]>
> ---
>  rust/hw/char/pl011/meson.build | 18 ++++++++++--------
>  rust/hw/timer/hpet/meson.build | 18 +++++++++---------
>  2 files changed, 19 insertions(+), 17 deletions(-)

Reviewed-by: Zhao Liu <[email protected]>


Reply via email to