<div dir="ltr"><div>Hi,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 17 Feb 2021 at 14:21, Pirate Praveen <<a href="mailto:praveen@onenetbeyond.org">praveen@onenetbeyond.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
On Wed, Feb 17, 2021 at 2:06 pm, Pirate Praveen <br>
<<a href="mailto:praveen@onenetbeyond.org" target="_blank">praveen@onenetbeyond.org</a>> wrote:<br>
> This is a bug in golang-gopkg-libgit2-git2go.v28-dev<br>
> <br>
> We will have to patch this to look for libgit2.pc from system<br>
<br>
apt-file find libgit2.pc<br>
libgit2-dev: /usr/lib/x86_64-linux-gnu/pkgconfig/libgit2.pc<br>
<br>
But pkg-config --static libgit2 does not give any output.<br></blockquote><div><br></div><div>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:<br><br>$ pkg-config --libs --static libgit2<br>-lgit2 -lrt -lpthread -lmbedtls -lmbedx509 -lmbedcrypto -lhttp_parser -lssh2 -lpcre -pthread -lz</div><div><br></div><div>However, on trying to use the --cflags option that gitaly uses, I do not get anything<br></div><div><br></div><div>$ pkg-config --cflags --static libgit2</div><div><br></div><div>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?)</div><div>Probably first patching gitaly to use libgit2.pc from right location can help us move forward with this.</div><div><br></div><div>Nilesh<br></div><div><br></div></div></div>