From 021d0b03933ece4c668b4bed19d2e4701d631e3c Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sat, 19 May 2018 17:08:13 +0100 Subject: [PATCH] Fixed broken library paths on recent ubuntu packages Close #179 --- bin/Makefile | 4 ++++ lib/Makefile | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/Makefile b/bin/Makefile index bc2f52b..2c63702 100644 --- a/bin/Makefile +++ b/bin/Makefile @@ -25,6 +25,10 @@ endif PG_LIBS = $(libpq) +# libs pgport, pgcommon moved somewhere else in some ubuntu version +# see ticket #179 +PG_LIBS += -L$(shell $(PG_CONFIG) --pkglibdir) + USE_PGXS = 1 # use pgxs if not in contrib directory PGXS := $(shell $(PG_CONFIG) --pgxs) include $(PGXS) diff --git a/lib/Makefile b/lib/Makefile index bcea169..5730765 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -34,9 +34,7 @@ include $(PGXS) # remove dependency on libxml2, libxslt, and libpam. # XXX: find a better way to make sure we are linking with libraries # from pg_config which we actually need. -LIBS := $(filter-out -lxml2, $(LIBS)) -LIBS := $(filter-out -lxslt, $(LIBS)) -LIBS := $(filter-out -lpam, $(LIBS)) +LIBS := $(filter-out -lpam -lxml2 -lxslt, $(LIBS)) pg_repack.sql: pg_repack.sql.in echo "BEGIN;" > $@; \