When compiling readline-5.2 on GNU/Linux (x86 and x86_64),
libreadline.so ends up missing symbols which are provided by libtermcap.
The issue is resolved (in a hacky way) by adding -ltermcap to the
LDFLAGS. The missing symbols can cause other programs to not compile
(try to compile parted-1.8.3 --with-readline, for example), and can
cause other weird runtime errors when using bash (the cursor jumps
around unpredictably).