1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
Remove PG_LIBS from prepare linking
--- a/Makefile
+++ b/Makefile
@@ -24,13 +24,7 @@ PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
PGVERNEW := $(shell if [ $(MAJORVERSION) -ge 12 ] ; then echo N ; else echo O ; fi )
-ifeq ($(PGVERNEW), N)
- PG_LIBS += -L$(shell $(PG_CONFIG) --pkglibdir)
- LIBS := $(filter-out -lpam -lxml2 -lxslt -lselinux -ledit, $(LIBS))
- MYBINLIBS := $(LIBS) $(PG_LIBS) -lm
-else
- MYBINLIBS := $(PG_LIBS) -lm
-endif
+MYBINLIBS := -L$(shell $(PG_CONFIG) --pkglibdir) -lpgport -lm
dump.c: prepare
./prepare
|