Content-Length: 271446 | pFad | http://github.com/postgrespro/postgres/commit/b58233c71b93a32fcab7219585cafc25a27eb769

08 Fix PGXS vpath build when PostgreSQL is built with vpath · postgrespro/postgres@b58233c · GitHub
Skip to content

Commit b58233c

Browse files
committed
Fix PGXS vpath build when PostgreSQL is built with vpath
PGXS computes srcdir from VPATH, PostgreSQL proper computes VPATH from srcdir, and doing both results in an error from make. Conditionalize so only one of these takes effect.
1 parent e4b5a07 commit b58233c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Makefile.global.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ VERSION = @PACKAGE_VERSION@
4040
MAJORVERSION = @PG_MAJORVERSION@
4141

4242
# Support for VPATH builds
43+
# (PGXS VPATH support is handled separately in pgxs.mk)
44+
ifndef PGXS
4345
vpath_build = @vpath_build@
4446
abs_top_srcdir = @abs_top_srcdir@
4547

@@ -51,6 +53,7 @@ top_srcdir = $(abs_top_srcdir)
5153
srcdir = $(top_srcdir)/$(subdir)
5254
VPATH = $(srcdir)
5355
endif
56+
endif # not PGXS
5457

5558
vpathsearch = `for f in $(addsuffix /$(1),$(subst :, ,. $(VPATH))); do test -r $$f && echo $$f && break; done`
5659

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/b58233c71b93a32fcab7219585cafc25a27eb769

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy