Re: [gentoo-dev] [PATCH 4/5] cargo.eclass: Enable dynamic linking by default

2025-03-08 Thread James Le Cuirot
On Sat, 2025-03-08 at 15:59 +0200, Arthur Zamarin wrote: > From: Michal Rostecki > > Rust defaults to static linking (`-C target-feature=+crt-static`) on > musl targets. We already patch dev-lang/rust to always prefer dynamic > linking, but to ensure that behavior with dev-lang/rust-bin, set the

[gentoo-dev] [PATCH 4/5] cargo.eclass: Enable dynamic linking by default

2025-03-08 Thread Arthur Zamarin
From: Michal Rostecki Rust defaults to static linking (`-C target-feature=+crt-static`) on musl targets. We already patch dev-lang/rust to always prefer dynamic linking, but to ensure that behavior with dev-lang/rust-bin, set the opposite option (`-C target-feature=-crt-static`) in RUSTFLAGS. Bu