From 65cf1a3221a7535e2aece1b99d985f9a4fbfb3cf Mon Sep 17 00:00:00 2001 From: KlimentSerafimov Date: Fri, 20 May 2022 12:02:51 -0400 Subject: [PATCH] Added paths to openssl includes and libraries for OSX because make complained that it couldn't find them. (#1761) --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 329742bf78..5eca7fb094 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,12 @@ else $(error Bad build type `$(BUILD_TYPE)', see Makefile for options) endif +# macOS with brew-installed openssl requires explicit paths +UNAME_S := $(shell uname -s) +ifeq ($(UNAME_S),Darwin) + PG_CONFIGURE_OPTS += --with-includes=/usr/local/opt/openssl/include --with-libraries=/usr/local/opt/openssl/lib +endif + # Choose whether we should be silent or verbose CARGO_BUILD_FLAGS += --$(if $(filter s,$(MAKEFLAGS)),quiet,verbose) # Fix for a corner case when make doesn't pass a jobserver