In a moment of inspiration, I tried this fix to Makefile.in.0.diff and it correctly relinks the library.
Index: Makefile.in.0.diff =================================================================== --- Makefile.in.0.diff (revision 2040) +++ Makefile.in.0.diff (working copy) @@ -34,7 +34,7 @@ +LINK = @LINK_PROGS@ $(LIBTOOL_LINK) --tag=CXX $(CXX) @CXXLDFLAGS@ $(CXXFLAGS) $(LDFLAGS) SHLIB_DIRS = -L../lib -SHLIB_LIST = $(SHLIB_DIRS) -lncurses at LIB_SUFFIX@ @SHLIB_LIST@ -+SHLIB_LIST = $(SHLIB_DIRS) -lncurses at LIB_SUFFIX@ -ltinfo at LIB_SUFFIX@ @SHLIB_LIST@ ++SHLIB_LIST = $(SHLIB_DIRS) @SHLIB_LIST@ -LIBROOT = ncurses++ +LIBROOT = ncurses at lib_suf...@++
