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:
parent
44b4ae00ed
commit
df73f328f8
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user