Add -I$(srcdir) to CPPFLAGS to make psqlscan.c compile in vpath builds.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 24 May 2005 16:45:23 +0000 (16:45 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 24 May 2005 16:45:23 +0000 (16:45 +0000)
Not sure why this hasn't been reported before; perhaps it is not needed
with newer gcc versions, but it definitely fails here.

src/bin/psql/Makefile

index 1b214bda7906b53499d846ee779d1dd0af47bf70..9ec54487459e91fad5bb49e735876ab5862b8477 100644 (file)
@@ -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 \