Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 90c48a5

Browse files
committed
slightly improve Makefiles
1 parent c3cedda commit 90c48a5

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

1515
EXTENSION = pg_pathman
1616

tests/cmocka/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ CFLAGS += -I$(CURDIR)/../../src/include
77
CFLAGS += $(shell $(PG_CONFIG) --cflags_sl)
88
CFLAGS += $(shell $(PG_CONFIG) --cflags)
99
CFLAGS += $(CFLAGS_SL)
10+
CFLAGS += $(PG_CPPFLAGS)
1011
LDFLAGS = -lcmocka
1112
TEST_BIN = rangeset_tests
1213

travis/pg-travis-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ LD_LIBRARY_PATH=/usr/local/lib
126126
export 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
132132
rm -f tests/cmocka/*.gcno

0 commit comments

Comments
 (0)