From 74d82b00691bbde5188428dee5a804711e8050ac Mon Sep 17 00:00:00 2001 From: Murat Tuncer Date: Fri, 14 Dec 2018 12:52:16 +0300 Subject: [PATCH] Fix OSX build failure Postgresql has recently changed its build environment for OSX. We need to have /usr/local/include in PG_CPPFLAGS to be able to access protobuf-c headers. --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index e7e9d13..d5dfd29 100644 --- a/Makefile +++ b/Makefile @@ -28,6 +28,11 @@ ifeq ($(enable_coverage),yes) EXTRA_CLEAN += *.gcno endif +UNAME_S := $(shell uname -s) +ifeq ($(UNAME_S),Darwin) + PG_CPPFLAGS += -I/usr/local/include +endif + # # Users need to specify their Postgres installation path through pg_config. For # example: /usr/local/pgsql/bin/pg_config or /usr/lib/postgresql/9.3/bin/pg_config