link libreadline with the new libtermcap (filter) library
illumos issue 1168 introduces a new libtermcap "fiter" library
that allows libreadline to pull just what it needs from libcurses,
and do so in a way that does not bind consumers of libreadline
to any particular curses library.
In order to avoid the need to add -ltermcap or -lcurses to all
applications that link with libreadline, we should build our
libreadline to have a dependency on this new filter library.
Note that fixing 1168 is a prerequisite for this issue.
Updated by Gordon Ross over 11 years ago
Unfortunately, looks like the patch didn't work when Jon built it.
I wonder why? When I build with the attached patch in place as
and then build components/readline, the resulting library shows:
$ elfdump -d build/i86/shlib/libreadline.so.5 Dynamic Section: .dynamic index tag value  NEEDED 0x30fd libc.so.1  POSFLAG_1 0x1 [ LAZY ]  NEEDED 0x3139 libtermcap.so.1  SONAME 0x1 libreadline.so.5
Note libtermcap.so.1 in the list above, but missing in oi_151a5 (and earlier).