From 920f7d4d3c34170be21514836e587bb92128a077 Mon Sep 17 00:00:00 2001 From: David Fetter Date: Fri, 28 Dec 2018 11:26:00 -0800 Subject: [PATCH] Remove cargo-culted non-default use of PGXS This has not been a useful option this decade. --- Makefile | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Makefile b/Makefile index d189502..257bc1e 100644 --- a/Makefile +++ b/Makefile @@ -41,21 +41,13 @@ endif PG_CPPFLAGS += -D _MYSQL_LIBNAME=\"lib$(MYSQL_LIB)$(DLSUFFIX)\" -ifdef USE_PGXS PG_CONFIG = pg_config PGXS := $(shell $(PG_CONFIG) --pgxs) include $(PGXS) + ifndef MAJORVERSION MAJORVERSION := $(basename $(VERSION)) endif ifeq (,$(findstring $(MAJORVERSION), 9.3 9.4 9.5 9.6 10 11)) $(error PostgreSQL 9.3, 9.4, 9.5, 9.6 10 or 11 is required to compile this extension) endif - -else -subdir = contrib/mysql_fdw -top_builddir = ../.. -include $(top_builddir)/src/Makefile.global -include $(top_srcdir)/contrib/contrib-global.mk -endif -