From a89aa02c6853ea033d07bb76d8b3f416b2aad5d5 Mon Sep 17 00:00:00 2001 From: Christian Kruse Date: Tue, 21 Jan 2014 14:22:59 +0100 Subject: [PATCH] fix: make pg_config be settable from outside the makefile Patch by Marco Nenciarini --- Makefile | 3 ++- sql/Makefile | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ff46f282..cf135688 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,8 @@ repmgr: $(repmgr_OBJS) $(CC) $(CFLAGS) $(repmgr_OBJS) $(PG_LIBS) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o repmgr ifdef USE_PGXS -PGXS := $(shell pg_config --pgxs) +PG_CONFIG = pg_config +PGXS := $(shell $(PG_CONFIG) --pgxs) include $(PGXS) else subdir = contrib/repmgr diff --git a/sql/Makefile b/sql/Makefile index d61848b7..7d3472b0 100644 --- a/sql/Makefile +++ b/sql/Makefile @@ -9,7 +9,8 @@ DATA=uninstall_repmgr_funcs.sql OBJS=repmgr_funcs.o ifdef USE_PGXS -PGXS := $(shell pg_config --pgxs) +PG_CONFIG = pg_config +PGXS := $(shell $(PG_CONFIG) --pgxs) include $(PGXS) else subdir = contrib/repmgr/sql