sys-apps/ripgrep: allow building on musl
authorGeorgy Yakovlev <gyakovlev@gentoo.org>
Tue, 31 Dec 2019 06:23:46 +0000 (22:23 -0800)
committerGeorgy Yakovlev <gyakovlev@gentoo.org>
Tue, 31 Dec 2019 06:30:56 +0000 (22:30 -0800)
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
sys-apps/ripgrep/ripgrep-11.0.2.ebuild

index fb7f5349baa8763827035d42aa81ed96b5b0d098..b01fadb16509920440df9d887a22f7d3a7bd3788 100644 (file)
@@ -95,6 +95,9 @@ BDEPEND="${RDEPEND}
 QA_FLAGS_IGNORED="usr/bin/rg"
 
 src_compile() {
+       # allow building on musl with dynamic linking support
+       # https://github.com/BurntSushi/rust-pcre2/issues/7
+       use elibc_musl && export PCRE2_SYS_STATIC=0
        cargo_src_compile $(usex pcre "--features pcre2" "")
 }