summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorYunier PĂ©rez <yunier.soad@gmail.com>2021-09-30 07:51:19 -0500
committerGitHub <noreply@github.com>2021-09-30 15:51:19 +0300
commit12e4f31d94ff2f6231a147b1578a4efcb0a29a7c (patch)
treef29d713f9ee1ec12a6f9dce4d25e10c5730fd588 /deps
parentffafb434fb50b5697d1aa35342721eaa5f13e0eb (diff)
downloadredis-12e4f31d94ff2f6231a147b1578a4efcb0a29a7c.tar.gz
Allow to override OPENSSL_PREFIX (#9567)
While the original issue was on Linux, this should work for other platforms as well.
Diffstat (limited to 'deps')
-rw-r--r--deps/hiredis/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/deps/hiredis/Makefile b/deps/hiredis/Makefile
index a8d37a2eb..7e41c97a5 100644
--- a/deps/hiredis/Makefile
+++ b/deps/hiredis/Makefile
@@ -77,7 +77,12 @@ ifeq ($(USE_SSL),1)
endif
ifeq ($(uname_S),Linux)
- SSL_LDFLAGS=-lssl -lcrypto
+ ifdef OPENSSL_PREFIX
+ CFLAGS+=-I$(OPENSSL_PREFIX)/include
+ SSL_LDFLAGS+=-L$(OPENSSL_PREFIX)/lib -lssl -lcrypto
+ else
+ SSL_LDFLAGS=-lssl -lcrypto
+ endif
else
OPENSSL_PREFIX?=/usr/local/opt/openssl
CFLAGS+=-I$(OPENSSL_PREFIX)/include