From badd2e46aa59c7eef187eada4ef1bbd32873b6f5 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sun, 5 Jun 2016 00:35:07 +0200 Subject: [PATCH] provide srcdir for postgres module in VPATH and CPPFLAGS The pgxs makefile in Postgres <= 9.2 cannot yet handle VPATH correctly. Provide header paths explicitly and overwrite VPATH after sourcing the pgxs file. Fixes #454. --- module/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/Makefile b/module/Makefile index 78b395a5..dd037a01 100644 --- a/module/Makefile +++ b/module/Makefile @@ -1,7 +1,9 @@ MODULES = nominatim -VPATH = $(MODSRCDIR) +PG_CPPFLAGS = -I$(MODSRCDIR) include $(PGXS) +VPATH = $(MODSRCDIR) + all: chmod 755 nominatim.so -- 2.39.5