Skip to content

Commit 9aa9fa4

Browse files
committed
VERSION_NUM is defined in Makefile.global
Use it instead of grepping PG_VERSION_NUM in pg_config.h.
1 parent 524bd10 commit 9aa9fa4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ PG_CONFIG = pg_config
2121
PGXS := $(shell $(PG_CONFIG) --pgxs)
2222
include $(PGXS)
2323

24-
PG_VERSION_NUM = $(shell awk '/PG_VERSION_NUM/ { print $$3 }' $(shell $(PG_CONFIG) --includedir-server)/pg_config.h)
25-
HAS_CROSSTAB = $(shell [ $(PG_VERSION_NUM) -ge 90600 ] && echo yes)
24+
HAS_CROSSTAB = $(shell [ $(VERSION_NUM) -ge 90600 ] && echo yes)
2625
ifeq ($(HAS_CROSSTAB),yes)
2726
REGRESS += crosstab convert
2827
endif

0 commit comments

Comments
 (0)