--- a/bin/Makefile
+++ b/bin/Makefile
@@ -36,9 +36,8 @@
 include $(top_srcdir)/contrib/contrib-global.mk
 endif
 
-# remove dependency to libxml2 and libxslt
-LIBS := $(filter-out -lxml2, $(LIBS))
-LIBS := $(filter-out -lxslt, $(LIBS))
+# remove dependency to pam, kerberos, libedit, libxml2 and libxslt
+LIBS := -lpgport -lpgcommon
 
 ifndef MAJORVERSION
 MAJORVERSION := $(basename $(VERSION))
