More flexibility when linking statically against libgit2

Allow static or dynamic linking against libssl and libcrypto.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-02-22 08:11:16 -08:00
parent 44b4ae00ed
commit df73f328f8

View file

@ -141,7 +141,11 @@ isEmpty(LIBGIT2DEVEL) {
setRpath: QMAKE_RPATHDIR += $$LIBGIT2DEVEL/build
LIBS += -L$$LIBGIT2DEVEL/build -lgit2 -lz -lcrypto
} else {
LIBS += $$LIBGIT2DEVEL/build/libgit2.a -Wl,-Bstatic -lz -lssl -lcrypto -Wl,-Bdynamic -ldl
contains(LIBGIT2STATIC, "full") {
LIBS += $$LIBGIT2DEVEL/build/libgit2.a -Wl,-Bstatic -lz -lssl -lcrypto -Wl,-Bdynamic -ldl
} else {
LIBS += $$LIBGIT2DEVEL/build/libgit2.a -lz -lssl -lcrypto
}
}
}