BurntSushi/rust-pcre2

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

Open

#19 aberto em 22 de fev. de 2021

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees)C (40 forks)github user discovery
enhancementhelp wanted

Métricas do repositório

Stars
 (63 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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.

Guia do colaborador