summaryrefslogtreecommitdiffstats
path: root/subsurface-configure.pri
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-01 18:45:41 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-02 08:51:32 -0800
commitebd22b9abc689d46e49532424adb0fac912cc409 (patch)
tree588d2ab2fdbd2fcda114448b3f8861fcf6aa801c /subsurface-configure.pri
parent74447d63892e37b8c69b5456de3836b745552ed0 (diff)
downloadsubsurface-ebd22b9abc689d46e49532424adb0fac912cc409.tar.gz
Allow static libgit2
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-configure.pri')
-rw-r--r--subsurface-configure.pri6
1 files changed, 5 insertions, 1 deletions
diff --git a/subsurface-configure.pri b/subsurface-configure.pri
index f8789b182..4c55c8b67 100644
--- a/subsurface-configure.pri
+++ b/subsurface-configure.pri
@@ -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