Fixed broken library paths on recent ubuntu packages

Close #179
This commit is contained in:
Daniele Varrazzo 2018-05-19 17:08:13 +01:00
parent 02e6c5ce96
commit 021d0b0393
2 changed files with 5 additions and 3 deletions

View File

@ -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)

View File

@ -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;" > $@; \