From: Sarah Hoffmann Date: Sat, 4 Jun 2016 22:35:07 +0000 (+0200) Subject: provide srcdir for postgres module in VPATH and CPPFLAGS X-Git-Tag: v3.0.0~167 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/badd2e46aa59c7eef187eada4ef1bbd32873b6f5 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. --- 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