mirror of
https://github.com/postgres/postgres.git
synced 2025-06-07 11:02:12 +03:00
Remove broken PGXS code for pg_xlogdump
With the PGXS boilerplate in place, pg_xlogdump currently fails with an ominous error message that certain targets cannot be built because certain files do not exist. Remove that and instead throw a quick error message alerting the user of the actual problem, which should be easier to diagnose that the statu quo. Andres Freund
This commit is contained in:
parent
7ce569babd
commit
dddc91ddd3
@ -13,15 +13,14 @@ RMGRDESCOBJS = $(patsubst %.c,%.o,$(RMGRDESCSOURCES))
|
|||||||
EXTRA_CLEAN = $(RMGRDESCSOURCES) xlogreader.c
|
EXTRA_CLEAN = $(RMGRDESCSOURCES) xlogreader.c
|
||||||
|
|
||||||
ifdef USE_PGXS
|
ifdef USE_PGXS
|
||||||
PG_CONFIG = pg_config
|
$(error "pg_xlogdump cannot be built with PGXS")
|
||||||
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
endif
|
||||||
include $(PGXS)
|
|
||||||
else
|
|
||||||
subdir = contrib/pg_xlogdump
|
subdir = contrib/pg_xlogdump
|
||||||
top_builddir = ../..
|
top_builddir = ../..
|
||||||
include $(top_builddir)/src/Makefile.global
|
include $(top_builddir)/src/Makefile.global
|
||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
endif
|
|
||||||
|
|
||||||
override CPPFLAGS := -DFRONTEND $(CPPFLAGS)
|
override CPPFLAGS := -DFRONTEND $(CPPFLAGS)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user