10.36. Readline-5.1 N32 Libraries

The Readline package is a set of libraries that offers command-line editing and history capabilities.

10.36.1. Installation of Readline

The following patch contains updates from the maintainer. The maintainer of Readline only releases these patches to fix serious issues.

patch -Np1 -i ../readline-5.1-fixes-3.patch

Prepare Readline for compilation:

CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" \
   ./configure --prefix=/usr --libdir=/lib32

Compile the package:

The meaning of the make option:

SHLIB_XLDFLAGS=-lncurses

This option forces Readline to link against the libncurses library.

This package does not come with a test suite.

Install the package:

make install

Give Readline's dynamic libraries more appropriate permissions:

chmod -v 755 /lib32/lib{readline,history}.so*

Now move the static libraries to a more appropriate location:

mv -v /lib32/lib{readline,history}.a /usr/lib32

Next, remove the .so files in /lib32 and relink them into /usr/lib32.

rm -v /lib32/lib{readline,history}.so
ln -svf ../../lib32/libreadline.so.5 /usr/lib32/libreadline.so
ln -svf ../../lib32/libhistory.so.5 /usr/lib32/libhistory.so

Details on this package are located in Section 10.53.2, “Contents of File.”