]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix VPATH builds of the replication parser from git for some !gcc compilers.
authorAndres Freund <andres@anarazel.de>
Thu, 25 Sep 2014 13:22:26 +0000 (15:22 +0200)
committerAndres Freund <andres@anarazel.de>
Thu, 25 Sep 2014 13:23:17 +0000 (15:23 +0200)
Some compilers don't automatically search the current directory for
included files. 9cc2c182fc2 fixed that for builds from tarballs by
adding an include to the source directory. But that doesn't work when
the scanner is generated in the VPATH directory. Use the same search
path as the other parsers in the tree.

One compiler that definitely was affected is solaris' sun cc.

Backpatch to 9.1 which introduced using an actual parser for
replication commands.

src/backend/replication/Makefile

index 2dde0118a47185d6de954725c55abc7007afd20d..39d91b8212fdb08677f1ebdf852e04126b2bba1a 100644 (file)
@@ -12,7 +12,7 @@ subdir = src/backend/replication
 top_builddir = ../../..
 include $(top_builddir)/src/Makefile.global
 
-override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
+override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS)
 
 OBJS = walsender.o walreceiverfuncs.o walreceiver.o basebackup.o \
        repl_gram.o syncrep.o