From 40771eaa1007b840091292047d2f103616f7187f Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Mon, 24 Aug 2020 17:21:15 -0700 Subject: [PATCH] [build] Mac OS build using upgraded openssl library Signed-off-by: Leo Chen --- README.md | 3 ++- scripts/go_executable_build.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b41efa42b..9ede8b592 100644 --- a/README.md +++ b/README.md @@ -16,13 +16,14 @@ http://api.hmny.io/ ## Requirements -### **Go 1.14.1** +### **Go 1.14.7** ### **GMP and OpenSSL** On macOS: ```bash brew install gmp brew install openssl +sudo ln -sf /usr/local/opt/openssl@1.1 /usr/local/opt/openssl ``` On Linux (Ubuntu) ```bash diff --git a/scripts/go_executable_build.sh b/scripts/go_executable_build.sh index 865bfdd74..0a7c211af 100755 --- a/scripts/go_executable_build.sh +++ b/scripts/go_executable_build.sh @@ -37,7 +37,7 @@ if [ "$(uname -s)" == "Darwin" ]; then LIB[libmcl.dylib]=${MCL_DIR}/lib/libmcl.dylib LIB[libgmp.10.dylib]=/usr/local/opt/gmp/lib/libgmp.10.dylib LIB[libgmpxx.4.dylib]=/usr/local/opt/gmp/lib/libgmpxx.4.dylib - LIB[libcrypto.1.0.0.dylib]=/usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib + LIB[libcrypto.1.1.dylib]=/usr/local/opt/openssl/lib/libcrypto.1.1.dylib else MD5=md5sum LIB[libbls384_256.so]=${BLS_DIR}/lib/libbls384_256.so