Skip to content

Commit f488d19

Browse files
committed
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).
1 parent 14652a1 commit f488d19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/isolation/Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ subdir = src/test/isolation
99
top_builddir = ../../..
1010
include $(top_builddir)/src/Makefile.global
1111

12-
override CPPFLAGS := -I$(srcdir) -I$(libpq_srcdir) -I$(srcdir)/../regress $(CPPFLAGS)
12+
override CPPFLAGS := -I. -I$(srcdir) -I$(libpq_srcdir) \
13+
-I$(srcdir)/../regress $(CPPFLAGS)
1314

1415
OBJS = specparse.o isolationtester.o $(WIN32RES)
1516

0 commit comments

Comments
 (0)