summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-22 08:11:16 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-22 08:11:16 -0800
commitdf73f328f88fbb2eccf30886836f9a4d548532a4 (patch)
tree578cb08332c8e88f790571c0ae52251405125454
parent44b4ae00ed772b79c4c23327dda2d8a209bffca9 (diff)
downloadsubsurface-df73f328f88fbb2eccf30886836f9a4d548532a4.tar.gz
More flexibility when linking statically against libgit2
Allow static or dynamic linking against libssl and libcrypto. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--subsurface-configure.pri6
1 files changed, 5 insertions, 1 deletions
diff --git a/subsurface-configure.pri b/subsurface-configure.pri
index 9c0cfdfc5..4ec44e82c 100644
--- a/subsurface-configure.pri
+++ b/subsurface-configure.pri
@@ -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
+ }
}
}