Skip to content

Commit 9a9337d

Browse files
authored
Problem: impossible to supply custom PG_CONFIG to PGXS
This somewhat limits the ability to configure this extension with separately installed Postgres without manipulating PATH. Solution: use conditional PG_CONFIG assignment If PG_CONFIG is supplied externally, it'll be used instead of the one hardcoded.
1 parent 7e23f9d commit 9a9337d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ top_builddir = ../..
2020
include $(top_builddir)/src/Makefile.global
2121
include $(top_srcdir)/contrib/contrib-global.mk
2222
else
23-
PG_CONFIG = pg_config
23+
PG_CONFIG ?= pg_config
2424
PGXS := $(shell $(PG_CONFIG) --pgxs)
2525
include $(PGXS)
2626
endif

0 commit comments

Comments
 (0)