This is an automated email from the ASF dual-hosted git repository.
spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 52c2aea fix: making APISIX compatible on macOS with ARM chip (#4256)
52c2aea is described below
commit 52c2aea0a678df80b34f302a9d4be51fbda6a416
Author: tzssangglass <[email protected]>
AuthorDate: Thu May 20 19:22:46 2021 +0800
fix: making APISIX compatible on macOS with ARM chip (#4256)
---
Makefile | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/Makefile b/Makefile
index ba97c56..54650a6 100644
--- a/Makefile
+++ b/Makefile
@@ -33,12 +33,12 @@ ifeq ($(shell test -d $(addprefix $(OR_PREFIX), openssl111)
&& echo -n yes), yes
endif
ifeq ($(UNAME), Darwin)
-LUAROCKS=luarocks --lua-dir=/usr/local/opt/[email protected]
-ifeq ($(shell test -d /usr/local/opt/openresty-openssl && echo yes), yes)
- OPENSSL_PREFIX=/usr/local/opt/openresty-openssl
+LUAROCKS=luarocks --lua-dir=$(HOMEBREW_PREFIX)/opt/[email protected]
+ifeq ($(shell test -d $(HOMEBREW_PREFIX)/opt/openresty-openssl && echo yes),
yes)
+ OPENSSL_PREFIX=$(HOMEBREW_PREFIX)/opt/openresty-openssl
endif
-ifeq ($(shell test -d /usr/local/opt/openresty-openssl111 && echo yes), yes)
- OPENSSL_PREFIX=/usr/local/opt/openresty-openssl111
+ifeq ($(shell test -d $(HOMEBREW_PREFIX)/opt/openresty-openssl111 && echo
yes), yes)
+ OPENSSL_PREFIX=$(HOMEBREW_PREFIX)/opt/openresty-openssl111
endif
endif