diff options
author | Yunier Perez <pyunier@vmware.com> | 2021-09-30 11:18:32 -0500 |
---|---|---|
committer | Michael Grunder <michael.grunder@gmail.com> | 2021-10-03 10:58:27 -0700 |
commit | 9eca1f36f4884f5fae8553aef3a0033c13700096 (patch) | |
tree | 5500277c712e52d5daee2aea9fc9563c748a1881 | |
parent | 2d9d77518d012a54ae34f9822e4b4d19823c4b75 (diff) |
Allow to override OPENSSL_PREFIX in Linux
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |