BurntSushi/rust-pcre2

Statically link against the existing PCRE2 library as reported by pkg-config

Open

#19 创建于 2021年2月22日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)C (40 fork)github user discovery
enhancementhelp wanted

仓库指标

Star
 (63 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

By referring to the comments of pcre2-sys/build.rs, it appears to me that statically linking against an existing PCRE library is not supported yet. https://github.com/BurntSushi/rust-pcre2/blob/710307d8e13d3f5a674661206f55528032e607b3/pcre2-sys/build.rs#L3-L9

I would like to ask for supporting linking ripgrep to a PCRE static library.

Here is my use case: I built HAProxy, ripgrep, and other stuff inside a docker image. As the HAProxy was built with the latest PCRE2 library statically bounded, I naturally expect that the ripgrep could be bounded with the same library to cut off the compilation time and benefit from bumping of dependencies.

贡献者指南