qLinux
… a distribution study


<< Prev
File

Next >>
M4


Readline-8.1

Reference: 8.11. Readline-8.1. Fix the build system:

patch -Np1 -i readline-8.1-bld-20220202.patch

Apply a patch to fix the sources:

patch -Np1 -i readline-8.1-src-20220317.patch

Skip the first step from the book and run  configure :

./configure --prefix=/qlnx \
            --with-curses \
            --disable-install-examples \
            --includedir=/qlnx/inc \
            --datarootdir=/qlnx/dat \
            --mandir=/qlnx/man \
            --docdir=/tmp \
            --infodir=/tmp

The configure option  –with-curses  tells readline that it can find the termcap library functions in the curses library, rather than a separate termcap library. It allows generating a correct readline.pc file. The options  –docdir  and  –infodir  puts unneeded documentation into  /tmp  - unfortunately using  /dev/null  doesn't work here.

Compile the package:

make SHLIB_LIBS="-lncursesw"

Install the package:

make SHLIB_LIBS="-lncursesw" install

We do not install additional documentation like in the book. Against we remove the unwanted docu in  /tmp :

rm /tmp/*

<< Prev
File

        

Next >>
M4