diff --git a/chapter06/ncurses.xml b/chapter06/ncurses.xml
index 2d2baf7dc..a29bcea7f 100644
--- a/chapter06/ncurses.xml
+++ b/chapter06/ncurses.xml
@@ -44,13 +44,16 @@
Installation of Ncurses
First, run the following commands to build the tic
- program on the build host:
+ program on the build host. We install it in
+ $LFS/tools, so that it is found
+ in the PATH when needed:
mkdir build
pushd build
- ../configure AWK=gawk
+ ../configure --prefix=$LFS/tools AWK=gawk
make -C include
make -C progs tic
+ install progs/tic $LFS/tools/bin
popd
Prepare Ncurses for compilation:
@@ -147,28 +150,14 @@ popd
Install the package:
-make DESTDIR=$LFS TIC_PATH=$(pwd)/build/progs/tic install
+make DESTDIR=$LFS install
ln -sv libncursesw.so $LFS/usr/lib/libncurses.so
sed -e 's/^#if.*XOPEN.*$/#if 1/' \
-i $LFS/usr/include/curses.h
-
The meaning of the install options:
-
- TIC_PATH=$(pwd)/build/progs/tic
-
- We need to pass the path of the newly built
- tic program that runs on the building machine, so
- the terminal database can be created without errors.
-
-
-
ln -sv libncursesw.so $LFS/usr/lib/libncurses.so