File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ OBJS = src/init.o src/relation_info.o src/utils.o src/partition_filter.o \
1010 src/compat/pg_compat.o src/compat/relation_tags.o src/compat/expand_rte_hook.o \
1111 src/compat/rowmarks_fix.o $(WIN32RES )
1212
13- PG_CPPFLAGS = -I$(CURDIR ) /src/include
13+ override PG_CPPFLAGS + = -I$(CURDIR ) /src/include
1414
1515EXTENSION = pg_pathman
1616
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ CFLAGS += -I$(CURDIR)/../../src/include
77CFLAGS += $(shell $(PG_CONFIG ) --cflags_sl)
88CFLAGS += $(shell $(PG_CONFIG ) --cflags)
99CFLAGS += $(CFLAGS_SL )
10+ CFLAGS += $(PG_CPPFLAGS )
1011LDFLAGS = -lcmocka
1112TEST_BIN = rangeset_tests
1213
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ LD_LIBRARY_PATH=/usr/local/lib
126126export LD_LIBRARY_PATH
127127
128128# run cmocka tests (using CFLAGS_SL for gcov)
129- make USE_PGXS=1 PG_CONFIG=$config_path CFLAGS_SL= " $( $config_path --cflags_sl ) -coverage" cmocka_tests || status=$?
129+ make USE_PGXS=1 PG_CONFIG=$config_path PG_CPPFLAGS= " -coverage" cmocka_tests || status=$?
130130
131131# remove useless gcov files
132132rm -f tests/cmocka/* .gcno
You can’t perform that action at this time.
0 commit comments