summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2021-04-12 19:24:41 -0700
committerNoah Misch <noah@leadboat.com>2021-04-12 19:27:38 -0700
commitf488d19f3e32bc626693af488b3a48c1d480bb95 (patch)
tree4867eb2e1fdd2b2cd4e10cd0f39480020b170257 /src
parent14652a19feab4d1cf0c637b896f89427d05b9c91 (diff)
Use "-I." in directories holding Bison parsers, for Oracle compilers.
With the Oracle Developer Studio 12.6 compiler, #line directives alter the current source file location for purposes of #include "..." directives. Hence, a VPATH build failed with 'cannot find include file: "specscanner.c"'. With two exceptions, parser-containing directories already add "-I. -I$(srcdir)"; eliminate the exceptions. Back-patch to 9.6 (all supported versions).
Diffstat (limited to 'src')
-rw-r--r--src/test/isolation/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/isolation/Makefile b/src/test/isolation/Makefile
index ab80409e12c..2a6132ca3b1 100644
--- a/src/test/isolation/Makefile
+++ b/src/test/isolation/Makefile
@@ -9,7 +9,8 @@ subdir = src/test/isolation
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global
-override CPPFLAGS := -I$(srcdir) -I$(libpq_srcdir) -I$(srcdir)/../regress $(CPPFLAGS)
+override CPPFLAGS := -I. -I$(srcdir) -I$(libpq_srcdir) \
+ -I$(srcdir)/../regress $(CPPFLAGS)
OBJS = specparse.o isolationtester.o $(WIN32RES)