From ddb700eee5f0440a01028bd7a10774dc507e1ca9 Mon Sep 17 00:00:00 2001 From: cpq Date: Sun, 20 Dec 2020 21:50:46 +0000 Subject: [PATCH] Fix openssl build --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 03e804f3..eaba01b4 100644 --- a/Makefile +++ b/Makefile @@ -22,9 +22,11 @@ CFLAGS += -DMG_ENABLE_MBEDTLS=1 -I$(MBEDTLS)/include -I/usr/include LDFLAGS ?= -L$(MBEDTLS)/lib -lmbedtls -lmbedcrypto -lmbedx509 endif ifeq "$(SSL)" "OPENSSL" -OPENSSL_DIR ?= $(shell "$(brew --cellar openssl)/$(brew info openssl --json | jq -j .[0].installed[0].version)") -CFLAGS += -DMG_ENABLE_OPENSSL=1 -I$(OPENSSL_DIR)/include -LDFLAGS ?= -L$(OPENSSL_DIR)/lib -lssl -lcrypto +OPENSSL_DIR ?= $(shell brew --cellar openssl) +OPENSSL_VER ?= $(shell brew info openssl --json | jq -j .[0].installed[0].version) +OPENSSL ?= $(OPENSSL_DIR)/$(OPENSSL_VER) +CFLAGS += -DMG_ENABLE_OPENSSL=1 -I$(OPENSSL)/include +LDFLAGS ?= -L$(OPENSSL)/lib -lssl -lcrypto endif all: mg_prefix test test++ ex vc98 vc2017 linux linux++ infer fuzz