aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chapter05/ncurses.xml21
1 files changed, 15 insertions, 6 deletions
diff --git a/chapter05/ncurses.xml b/chapter05/ncurses.xml
index 5c868fffd..e2455eb7a 100644
--- a/chapter05/ncurses.xml
+++ b/chapter05/ncurses.xml
@@ -47,6 +47,16 @@
<screen><userinput remap="pre">sed -i s/mawk// configure</userinput></screen>
+ <para>Then, run the following commands to build the <quote>tic</quote>
+ program on the build host:</para>
+
+<screen><userinput remap="pre">mkdir build
+cd build
+../configure
+make -C include
+make -C progs tic
+cd ..</userinput></screen>
+
<para>Prepare Ncurses for compilation:</para>
<screen><userinput remap="configure">./configure --prefix=/usr \
@@ -57,7 +67,6 @@
--without-debug \
--without-ada \
--without-normal \
- --disable-db-install \
--enable-widec \
--enable-pc-files</userinput></screen>
@@ -102,16 +111,16 @@
</para>
</listitem>
</varlistentry>
-
+ <!--
<varlistentry>
- <term><parameter>--disable-db-install</parameter></term>
+ <term><parameter>- -disable-db-install</parameter></term>
<listitem>
<para>This switch disables building the terminfo database: it is not
needed at this stage, and if <command>tic</command> is too old,
it cannot compile recent databases.</para>
</listitem>
</varlistentry>
-
+ -->
</variablelist>
<para>Compile the package:</para>
@@ -120,8 +129,8 @@
<para>Install the package:</para>
<!-- TODO: check and document -->
-<screen><userinput remap="install">make DESTDIR=$LFS install
- ln -s libncursesw.so $LFS/usr/lib/libncurses.so</userinput></screen>
+<screen><userinput remap="install">make DESTDIR=$LFS TIC_PATH=$(pwd)/build/progs/tic install
+ln -s libncursesw.so $LFS/usr/lib/libncurses.so</userinput></screen>
<para>Move the shared libraries to the
<filename class="directory">/lib</filename> directory, where they are