mirror of
https://github.com/monero-project/monero-gui
synced 2024-12-21 03:45:53 +01:00
build: MacOS openssl path provided by brew, fallback to default
This commit is contained in:
parent
34b216e6dc
commit
56023facaa
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user