Hi,

On Wed, 17 Feb 2021 at 14:21, Pirate Praveen <prav...@onenetbeyond.org>
wrote:

>
>
> On Wed, Feb 17, 2021 at 2:06 pm, Pirate Praveen
> <prav...@onenetbeyond.org> wrote:
> > This is a bug in golang-gopkg-libgit2-git2go.v28-dev
> >
> > We will have to patch this to look for libgit2.pc from system
>
> apt-file find libgit2.pc
> libgit2-dev: /usr/lib/x86_64-linux-gnu/pkgconfig/libgit2.pc
>
> But pkg-config --static libgit2 does not give any output.
>

This is expected since the command does not extract any information from
.pc file. If you want all the linker options, a --libs should be used:

$ pkg-config --libs --static libgit2
-lgit2 -lrt -lpthread -lmbedtls -lmbedx509 -lmbedcrypto -lhttp_parser
-lssh2 -lpcre -pthread -lz

However, on trying to use the --cflags option that gitaly uses, I do not
get anything

$ pkg-config --cflags --static libgit2

Since I do not know libgit2 well enough, it's difficult to ascertain if
this is intentional or not, (or if it needs another file just for static
linking?)
Probably first patching gitaly to use libgit2.pc from right location can
help us move forward with this.

Nilesh

Reply via email to