Use "-I." in directories holding Bison parsers, for Oracle compilers.
authorNoah Misch <noah@leadboat.com>
Tue, 13 Apr 2021 02:24:41 +0000 (19:24 -0700)
committerNoah Misch <noah@leadboat.com>
Tue, 13 Apr 2021 02:27:38 +0000 (19:27 -0700)
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).

src/test/isolation/Makefile

index ab80409e12c26ce4e3a28b377c081405920c4f3f..2a6132ca3b189e216797a9dbab03fa2deed947ce 100644 (file)
@@ -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)