From 9eca1f36f4884f5fae8553aef3a0033c13700096 Mon Sep 17 00:00:00 2001 From: Yunier Perez Date: Thu, 30 Sep 2021 11:18:32 -0500 Subject: Allow to override OPENSSL_PREFIX in Linux --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a8d37a2..7e41c97 100644 --- a/Makefile +++ b/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 -- cgit v1.2.3