Allow static libgit2

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-12-01 18:45:41 -08:00
parent 74447d6389
commit ebd22b9abc
2 changed files with 7 additions and 3 deletions

View file

@ -137,7 +137,11 @@ isEmpty(LIBGIT2DEVEL) {
PKGCONFIG += libgit2
} else {
INCLUDEPATH += $$LIBGIT2DEVEL/include
LIBS += -L$$LIBGIT2DEVEL/build -lgit2 -lz -lcrypto
isEmpty(LIBGIT2STATIC) {
LIBS += -L$$LIBGIT2DEVEL/build -lgit2 -lz -lcrypto
} else {
LIBS += $$LIBGIT2DEVEL/build/libgit2.a -Wl,-Bstatic -lz -lssl -lcrypto -Wl,-Bdynamic -ldl
}
}
# Add libiconv if needed