There is an updated pull request by Logarithmus against master on the void-packages repository https://github.com/Logarithmus/void-packages rust-pcre-sys https://github.com/void-linux/void-packages/pull/25182 common/build-helper/rust.sh: dynamic linking to libpcre2 on musl 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. A patch file from https://github.com/void-linux/void-packages/pull/25182.patch is attached