aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2018-09-20 19:38:23 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2018-09-20 19:38:23 +0800
commitac4366e85ed9043cfd7168c3e929183596be18d7 (patch)
tree0951d9704f8a635113aefffd39b727d10d179d3c
parent20a39f9eb358c9f830c9c3d0a49ec3a41baf1031 (diff)
downloadtangerine-mcl-ac4366e85ed9043cfd7168c3e929183596be18d7.tar.gz
tangerine-mcl-ac4366e85ed9043cfd7168c3e929183596be18d7.tar.zst
tangerine-mcl-ac4366e85ed9043cfd7168c3e929183596be18d7.zip
use OPENSSL_DIR if necessary
-rw-r--r--common.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/common.mk b/common.mk
index 986e88f..3a82835 100644
--- a/common.mk
+++ b/common.mk
@@ -14,8 +14,9 @@ ifeq ($(UNAME_S),Darwin)
OS=mac
ARCH=x86_64
LIB_SUF=dylib
- CFLAGS+=-I/usr/local/opt/openssl/include
- LDFLAGS+=-L/usr/local/opt/openssl/lib
+ OPENSSL_DIR?=/usr/local/opt/openssl
+ CFLAGS+=-I$(OPENSSL_DIR)/include
+ LDFLAGS+=-L$(OPENSSL_DIR)/lib
else
LIB_SUF=so
endif