diff options
author | Noah Misch <noah@leadboat.com> | 2021-04-12 19:24:41 -0700 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2021-04-12 19:24:58 -0700 |
commit | 13881199ee5760ed5e40df1fa749d9715467f43e (patch) | |
tree | 2e768c9bc677b6282cbc584d06dc799a416dcfec /src/backend | |
parent | 766c8fce5281f8a7cf690e1fe2dc3a19c326578f (diff) | |
download | postgresql-13881199ee5760ed5e40df1fa749d9715467f43e.tar.gz postgresql-13881199ee5760ed5e40df1fa749d9715467f43e.zip |
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/backend')
-rw-r--r-- | src/backend/utils/adt/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/utils/adt/Makefile b/src/backend/utils/adt/Makefile index 5d2aca8cfe6..62149f8b817 100644 --- a/src/backend/utils/adt/Makefile +++ b/src/backend/utils/adt/Makefile @@ -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 \ |