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.
This commit is contained in:
Sarah Hoffmann 2016-06-05 00:35:07 +02:00
parent 98e5ba6b61
commit badd2e46aa

View File

@ -1,7 +1,9 @@
MODULES = nominatim
VPATH = $(MODSRCDIR)
PG_CPPFLAGS = -I$(MODSRCDIR)
include $(PGXS)
VPATH = $(MODSRCDIR)
all:
chmod 755 nominatim.so