1
mirror of https://github.com/monero-project/monero-gui synced 2025-01-01 21:56:23 +01:00

Merge pull request #2494

56023fa build: MacOS openssl path provided by brew, fallback to default (xiphon)
This commit is contained in:
luigi1111 2019-11-25 12:49:05 -06:00
commit 380f218b3a
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -370,11 +370,19 @@ macx {
# message("using static libraries")
# LIBS+= -Wl,-Bstatic
# }
OPENSSL_LIBRARY_DIRS = $$system(brew --prefix openssl, lines, EXIT_CODE)
equals(EXIT_CODE, 0) {
OPENSSL_LIBRARY_DIRS = $$OPENSSL_LIBRARY_DIRS/lib
} else {
OPENSSL_LIBRARY_DIRS = /usr/local/ssl/lib
}
QT += macextras
OBJECTIVE_SOURCES += src/qt/macoshelper.mm
LIBS+= \
-L/usr/local/lib \
-L/usr/local/opt/openssl/lib \
-L$$OPENSSL_LIBRARY_DIRS \
-L/usr/local/opt/boost/lib \
-lboost_serialization \
-lboost_thread-mt \