Skip to content

Commit

Permalink
Fix OSX build failure
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mtuncer committed Dec 14, 2018
1 parent 796b748 commit a15864a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,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
Expand Down

0 comments on commit a15864a

Please sign in to comment.