From: Tom Lane Date: Tue, 24 May 2005 16:45:23 +0000 (+0000) Subject: Add -I$(srcdir) to CPPFLAGS to make psqlscan.c compile in vpath builds. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=1bf0a43d9fe54213827bb28709d066b758884f0e;p=users%2Fbernd%2Fpostgres.git Add -I$(srcdir) to CPPFLAGS to make psqlscan.c compile in vpath builds. Not sure why this hasn't been reported before; perhaps it is not needed with newer gcc versions, but it definitely fails here. --- diff --git a/src/bin/psql/Makefile b/src/bin/psql/Makefile index 1b214bda79..9ec5448745 100644 --- a/src/bin/psql/Makefile +++ b/src/bin/psql/Makefile @@ -17,7 +17,7 @@ include $(top_builddir)/src/Makefile.global REFDOCDIR= $(top_srcdir)/doc/src/sgml/ref -override CPPFLAGS := -DFRONTEND -I$(libpq_srcdir) $(CPPFLAGS) +override CPPFLAGS := -DFRONTEND -I$(srcdir) -I$(libpq_srcdir) $(CPPFLAGS) OBJS= command.o common.o help.o input.o stringutils.o mainloop.o copy.o \ startup.o prompt.o variables.o large_obj.o print.o describe.o \