The only library this should need to link to is libgit2, as it's not using anything else. `libgit2.so` then links against what *it* needs to use. What errors are you getting? What OS?