aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/ncurses.xml
diff options
context:
space:
mode:
authorPierre Labastie <pieere@linuxfromscratch.org>2020-05-06 12:59:54 +0000
committerPierre Labastie <pieere@linuxfromscratch.org>2020-05-06 12:59:54 +0000
commit69a8b2b7e4f6bee9e1067c17b1fb49182a049515 (patch)
tree4f5cde9048c1a7b89f40d587982a833725e7a06f /chapter05/ncurses.xml
parent0b63a37abe8f130b390f1c4be54768dd1832213e (diff)
Build tic on build host and use it to generate /usr/share/terminfo
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11836 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05/ncurses.xml')
-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