diff options
| author | Tom Lane | 2007-06-26 22:05:04 +0000 |
|---|---|---|
| committer | Tom Lane | 2007-06-26 22:05:04 +0000 |
| commit | b09c248bdd3d0d86714865d2142604aea789e840 (patch) | |
| tree | 382d314f0df7e8cd877d8d0e554c199c24833b36 /src/makefiles | |
| parent | 80f3b5ad2e294b16f1c179a8c6cde98ee5fb3a53 (diff) | |
Fix PGXS conventions so that extensions can be built against Postgres
installations whose pg_config program does not appear first in the PATH.
Per gripe from Eddie Stanley and subsequent discussions with Fabien Coelho
and others.
Diffstat (limited to 'src/makefiles')
| -rw-r--r-- | src/makefiles/pgxs.mk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/makefiles/pgxs.mk b/src/makefiles/pgxs.mk index 1a0fa54c6ef..7b5683f6211 100644 --- a/src/makefiles/pgxs.mk +++ b/src/makefiles/pgxs.mk @@ -1,6 +1,6 @@ # PGXS: PostgreSQL extensions makefile -# $PostgreSQL: pgsql/src/makefiles/pgxs.mk,v 1.9 2006/07/21 00:24:04 tgl Exp $ +# $PostgreSQL: pgsql/src/makefiles/pgxs.mk,v 1.10 2007/06/26 22:05:04 tgl Exp $ # This file contains generic rules to build many kinds of simple # extension modules. You only need to set a few variables and include @@ -11,7 +11,8 @@ # [variable assignments, see below] # [custom rules, rarely necessary] # -# PGXS := $(shell pg_config --pgxs) +# PG_CONFIG = pg_config +# PGXS := $(shell $(PG_CONFIG) --pgxs) # include $(PGXS) # # The following variables can be set: @@ -38,6 +39,9 @@ # PG_CPPFLAGS -- will be added to CPPFLAGS # PG_LIBS -- will be added to PROGRAM link line # SHLIB_LINK -- will be added to MODULE_big link line +# PG_CONFIG -- path to pg_config program for the PostgreSQL installation +# to build against (typically just "pg_config" to use the first one in +# your PATH) # # Better look at some of the existing uses for examples... |
