diff options
| author | Noah Misch | 2015-07-31 00:48:41 +0000 |
|---|---|---|
| committer | Noah Misch | 2015-07-31 00:48:41 +0000 |
| commit | 5da944fb4683762b8ccebbf7599f79db01e63132 (patch) | |
| tree | f1de58ec49a35e80c0193b65a5a17746cb762750 /src/makefiles | |
| parent | e8e86fbc8b3619da54c485cf05272ccf1dac1a7d (diff) | |
Consolidate makefile code for setting top_srcdir, srcdir and VPATH.
Responsibility was formerly split between Makefile.global and pgxs.mk.
As a result of commit b58233c71b93a32fcab7219585cafc25a27eb769, in the
PGXS case, these variables were unset while parsing Makefile.global and
callees. Inclusion of Makefile.custom did not work from PGXS, and the
subtle difference seemed like a recipe for future bugs. Back-patch to
9.4, where that commit first appeared.
Diffstat (limited to 'src/makefiles')
| -rw-r--r-- | src/makefiles/pgxs.mk | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/makefiles/pgxs.mk b/src/makefiles/pgxs.mk index b5113726841..b6874ced91c 100644 --- a/src/makefiles/pgxs.mk +++ b/src/makefiles/pgxs.mk @@ -62,21 +62,6 @@ ifdef PGXS top_builddir := $(dir $(PGXS))../.. include $(top_builddir)/src/Makefile.global -top_srcdir = $(top_builddir) -# If VPATH is set or Makefile is not in current directory we are building -# the extension with VPATH so we set the variable here. -ifdef VPATH -srcdir = $(VPATH) -else -ifeq ($(CURDIR),$(dir $(firstword $(MAKEFILE_LIST)))) -srcdir = . -VPATH = -else -srcdir = $(dir $(firstword $(MAKEFILE_LIST))) -VPATH = $(srcdir) -endif -endif - # These might be set in Makefile.global, but if they were not found # during the build of PostgreSQL, supply default values so that users # of pgxs can use the variables. |
