From 14a027cce5fa9ec1220e2309f45b5c479e86ed8b Mon Sep 17 00:00:00 2001 From: Alexander Bayandin Date: Thu, 28 Jul 2022 17:05:30 +0100 Subject: [PATCH] Makefile: get openssl prefix dynamically (#2179) --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 566f2ecb10..fc75e9fc5e 100644 --- a/Makefile +++ b/Makefile @@ -29,9 +29,11 @@ else endif # macOS with brew-installed openssl requires explicit paths +# It can be configured with OPENSSL_PREFIX variable UNAME_S := $(shell uname -s) ifeq ($(UNAME_S),Darwin) - PG_CONFIGURE_OPTS += --with-includes=$(HOMEBREW_PREFIX)/opt/openssl/include --with-libraries=$(HOMEBREW_PREFIX)/opt/openssl/lib + OPENSSL_PREFIX ?= $(shell brew --prefix openssl@3) + PG_CONFIGURE_OPTS += --with-includes=$(OPENSSL_PREFIX)/include --with-libraries=$(OPENSSL_PREFIX)/lib endif # Choose whether we should be silent or verbose