From 567a49ed1785acfb9666664df60865aebdbe55e7 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 3 Apr 2018 17:37:37 -0400 Subject: [PATCH] Fix link for libcurl and libopenssl on Mac --- dep/Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dep/Makefile b/dep/Makefile index 65d3fc23..5fc5bde2 100755 --- a/dep/Makefile +++ b/dep/Makefile @@ -87,6 +87,11 @@ $(openssl): cd openssl-1.1.0g && ./config --prefix="$(realpath $(DEP_LOCAL))" $(MAKE) -C openssl-1.1.0g $(MAKE) -C openssl-1.1.0g install_sw +ifeq ($(ARCH),mac) + otool -L $@ + install_name_tool -change $(PWD)/lib/libcrypto.1.1.dylib @loader_path/libcrypto.1.1.dylib $@ + otool -L $@ +endif $(libcurl): $(openssl) $(WGET) https://github.com/curl/curl/releases/download/curl-7_56_0/curl-7.56.0.tar.gz @@ -97,6 +102,12 @@ $(libcurl): $(openssl) --without-ca-bundle --with-ca-fallback --with-ssl="$(realpath $(DEP_LOCAL))" $(MAKE) -C curl-7.56.0 $(MAKE) -C curl-7.56.0 install +ifeq ($(ARCH),mac) + otool -L $@ + install_name_tool -change $(PWD)/lib/libcrypto.1.1.dylib @loader_path/libcrypto.1.1.dylib $@ + install_name_tool -change $(PWD)/lib/libssl.1.1.dylib @loader_path/libssl.1.1.dylib $@ + otool -L $@ +endif $(libzip): $(WGET) https://nih.at/libzip/libzip-1.2.0.tar.gz