summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorYunier Perez <pyunier@vmware.com>2021-09-30 11:18:32 -0500
committerMichael Grunder <michael.grunder@gmail.com>2021-10-03 10:58:27 -0700
commit9eca1f36f4884f5fae8553aef3a0033c13700096 (patch)
tree5500277c712e52d5daee2aea9fc9563c748a1881 /Makefile
parent2d9d77518d012a54ae34f9822e4b4d19823c4b75 (diff)
Allow to override OPENSSL_PREFIX in Linux
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
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