Skip to content

Commit

Permalink
More flexibility when linking statically against libgit2
Browse files Browse the repository at this point in the history
Allow static or dynamic linking against libssl and libcrypto.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
  • Loading branch information
dirkhh committed Feb 22, 2015
1 parent 44b4ae0 commit df73f32
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion subsurface-configure.pri
Expand Up @@ -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
}
}
}

Expand Down

0 comments on commit df73f32

Please sign in to comment.