diff options
-rw-r--r-- | subsurface-configure.pri | 6 |
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 + } } } |