mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
1e95bbc870
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 6697aa2bc2
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.
27 lines
680 B
Makefile
27 lines
680 B
Makefile
# contrib/dblink/Makefile
|
|
|
|
MODULE_big = dblink
|
|
OBJS = dblink.o $(WIN32RES)
|
|
PG_CPPFLAGS = -I$(libpq_srcdir)
|
|
SHLIB_LINK = $(libpq)
|
|
|
|
EXTENSION = dblink
|
|
DATA = dblink--1.1.sql dblink--1.0--1.1.sql dblink--unpackaged--1.0.sql
|
|
PGFILEDESC = "dblink - connect to other PostgreSQL databases"
|
|
|
|
REGRESS = paths dblink
|
|
REGRESS_OPTS = --dlpath=$(top_builddir)/src/test/regress
|
|
EXTRA_CLEAN = sql/paths.sql expected/paths.out
|
|
|
|
ifdef USE_PGXS
|
|
PG_CONFIG = pg_config
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
|
include $(PGXS)
|
|
else
|
|
SHLIB_PREREQS = submake-libpq
|
|
subdir = contrib/dblink
|
|
top_builddir = ../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
endif
|