]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
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:24:58 +0000 (19:24 -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/backend/utils/adt/Makefile
src/test/isolation/Makefile

index 5d2aca8cfe6f84ea56510ac72fabc280c5ffc374..62149f8b8170e75e5ab45d889c333cc825361d81 100644 (file)
@@ -8,6 +8,8 @@ subdir = src/backend/utils/adt
 top_builddir = ../../../..
 include $(top_builddir)/src/Makefile.global
 
+override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS)
+
 # keep this list arranged alphabetically or it gets to be a mess
 OBJS = \
        acl.o \
index 779e93944b95cd380d38a061455e45f15a915629..f43081c5b57443b888634e374ce026690ff8fa0a 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 = \
        $(WIN32RES) \