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/402/head
Mikail 2023-05-02 13:26:55 +02:00 committed by GitHub
parent 1617f0df09
commit 7623f15e68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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".")