# pkg-config --variable libdir libgit2 /usr//usr/lib64
I currently lack time to have a closer look. Feel free to fix if you can.
if you don't have time to maintain the package, you can assign it to maintainer-needed@gentoo.org
sighs
https://github.com/libgit2/libgit2/commit/1568dea87c8151791c9e0ec5fb0eda864e26bea2 Fixed in 0.23.4. Thanks for your patience.