Browse Source

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
Pierre Labastie 5 năm trước cách đây
mục cha
commit
69a8b2b7e4
1 tập tin đã thay đổi với 15 bổ sung6 xóa
  1. 15 6
      chapter05/ncurses.xml

+ 15 - 6
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