From: Tom Lane Date: Tue, 5 Jan 2010 03:56:52 +0000 (+0000) Subject: Fix a few places where we needed -I. in CPPFLAGS to work properly in X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=e2dd09d0b1151fd9df35a33078d61695018ccfec;p=users%2Fandresfreund%2Fpostgres.git Fix a few places where we needed -I. in CPPFLAGS to work properly in VPATH builds. We had this already in several places, but not all. --- diff --git a/src/backend/bootstrap/Makefile b/src/backend/bootstrap/Makefile index 604f0e9543..5ab023d228 100644 --- a/src/backend/bootstrap/Makefile +++ b/src/backend/bootstrap/Makefile @@ -10,7 +10,7 @@ subdir = src/backend/bootstrap top_builddir = ../../.. include $(top_builddir)/src/Makefile.global -override CPPFLAGS := -I$(srcdir) $(CPPFLAGS) +override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS) OBJS= bootparse.o bootstrap.o diff --git a/src/backend/parser/Makefile b/src/backend/parser/Makefile index 8e4c963dc6..a8f4c07b5a 100644 --- a/src/backend/parser/Makefile +++ b/src/backend/parser/Makefile @@ -10,7 +10,7 @@ subdir = src/backend/parser top_builddir = ../../.. include $(top_builddir)/src/Makefile.global -override CPPFLAGS := -I$(srcdir) $(CPPFLAGS) +override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS) OBJS= analyze.o gram.o keywords.o kwlookup.o parser.o \ parse_agg.o parse_clause.o parse_coerce.o parse_cte.o parse_expr.o \ diff --git a/src/makefiles/pgxs.mk b/src/makefiles/pgxs.mk index 58ad696716..973967a7ef 100644 --- a/src/makefiles/pgxs.mk +++ b/src/makefiles/pgxs.mk @@ -64,7 +64,7 @@ VPATH = endif -override CPPFLAGS := -I$(srcdir) $(CPPFLAGS) +override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS) ifdef MODULES override CFLAGS += $(CFLAGS_SL)