From 56023facaab4d8abd0014d6d836177b747f6165d Mon Sep 17 00:00:00 2001 From: xiphon Date: Mon, 25 Nov 2019 14:30:28 +0000 Subject: [PATCH] build: MacOS openssl path provided by brew, fallback to default --- monero-wallet-gui.pro | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/monero-wallet-gui.pro b/monero-wallet-gui.pro index 42d97b06..f8e30e33 100644 --- a/monero-wallet-gui.pro +++ b/monero-wallet-gui.pro @@ -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 \