mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
More flexibility when linking statically against libgit2
Allow static or dynamic linking against libssl and libcrypto. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
44b4ae00ed
commit
df73f328f8
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue