There's a merged pull request on the void-packages repository common/build-helper/rust.sh: dynamic linking to libpcre2 on musl https://github.com/void-linux/void-packages/pull/25182 Description: By default, `pcre2-sys` crate use static linking on `musl` targets. This patch fixes such behavior and all Rust crates will automatically use system-provided `libpcre2` on musl.