Details on this package are located in Section 10.18.2, “Contents of Ncurses.”
The Ncurses package contains libraries for terminal-independent handling of character screens.
The following patch fixes an issue with some Bash versions:
patch -Np1 -i ../ncurses-5.9-bash_fix-1.patch
Prepare Ncurses for compilation:
CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" \
./configure --prefix=/tools --with-shared --build=${CLFS_HOST} \
--host=${CLFS_TARGET} --without-debug --without-ada \
--enable-overwrite --with-build-cc=gccThe meaning of the configure options:
--with-sharedThis tells Ncurses to create a shared library.
--without-debugThis tells Ncurses not to build with debug information.
--without-adaThis ensures that Ncurses does not build support for the Ada compiler which may be present on the host but will not be available when building the final system.
--enable-overwriteThis tells Ncurses to install its header files into
/tools/include, instead of
/tools/include/ncurses, to
ensure that other packages can find the Ncurses headers
successfully.
--with-build-cc=gccThis tells Ncurses what type of compiler we are using.
Compile the package:
make
Install the package:
make install
Details on this package are located in Section 10.18.2, “Contents of Ncurses.”