Created attachment 1733 [details]
a patch for configure.ac, providing tinfo detection
By default, the libreadline shared object does not link to a termcap library.
The Readline INSTALL document says:
Readline uses the termcap functions, but does not link with the termcap or
curses library itself, allowing applications which link with readline to
choose an appropriate library.
Additionally, the libncurses shared object can be built such that the termcap
functions are packaged into a separate library, libtinfo.so, which
libncurses.so links to. But when the linker flag --as-needed is used, the
linker will not link to libncurses to satisfy the termcap symbol requirements,
even v -lncurses is given.
What's neededed in this scenario is -ltinfo.
Here is a similar bug report for Python:
The attached patch is one possible fix.