Make pg_config configurable in Makefile invocation (#392)

This allows to override the `PG_CONFIG` variable through environment variables
when wanting to use another one that is not in the `PATH`.
pull/397/head
Mikail 2023-05-02 13:26:55 +02:00 committed by Hamid Akhtar
parent 3844d7b908
commit 8687edf28d
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ REGRESS = basic version guc pgsm_query_id functions counters relations database
# which typical installcheck users do not have (e.g. buildfarm clients). # which typical installcheck users do not have (e.g. buildfarm clients).
# NO_INSTALLCHECK = 1 # NO_INSTALLCHECK = 1
PG_CONFIG = pg_config PG_CONFIG ?= pg_config
ifdef USE_PGXS ifdef USE_PGXS
MAJORVERSION := $(shell pg_config --version | awk {'print $$2'} | cut -f1 -d".") MAJORVERSION := $(shell pg_config --version | awk {'print $$2'} | cut -f1 -d".")