diff -ru a/shlib/Makefile.in b/shlib/Makefile.in
--- a/shlib/Makefile.in 2020-10-29 19:47:57.000000000 +0000
+++ b/shlib/Makefile.in 2021-06-17 07:47:34.626966115 +0000
@@ -83,7 +83,7 @@
SHOBJ_LDFLAGS = @SHOBJ_LDFLAGS@
SHOBJ_XLDFLAGS = @SHOBJ_XLDFLAGS@
-SHOBJ_LIBS = @SHOBJ_LIBS@
+SHOBJ_LIBS = @SHOBJ_LIBS@ $(TERMCAP_LIB)
SHLIB_XLDFLAGS = @LDFLAGS@ @SHLIB_XLDFLAGS@
SHLIB_LIBS = @SHLIB_LIBS@