summaryrefslogtreecommitdiffstats
path: root/subsurface-configure.pri
diff options
context:
space:
mode:
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