]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix SHLIB_PREREQS use in contrib, allowing PGXS builds
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 4 Dec 2014 12:58:12 +0000 (07:58 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 4 Dec 2014 13:45:38 +0000 (08:45 -0500)
commit4e4b9002498b72c7000a675216470e8918fc0420
tree40b42920fdb67e6ca4f52d2fad99b2bb0f93f7cf
parent3e2dc9703a4835ace14310f82369df0a4e8528f2
Fix SHLIB_PREREQS use in contrib, allowing PGXS builds

dblink and postgres_fdw use SHLIB_PREREQS = submake-libpq to build libpq
first.  This doesn't work in a PGXS build, because there is no libpq to
build.  So just omit setting SHLIB_PREREQS in this case.

Note that PGXS users can still use SHLIB_PREREQS (although it is not
documented).  The problem here is only that contrib modules can be built
in-tree or using PGXS, and the prerequisite is only applicable in the
former case.

Commit 6697aa2bc25c83b88d6165340348a31328c35de6 previously attempted to
address this by creating a somewhat fake submake-libpq target in
Makefile.global.  That was not the right fix, and it was also done in a
nonportable way, so revert that.
contrib/dblink/Makefile
contrib/postgres_fdw/Makefile
src/Makefile.global.in