Ignore:
Timestamp:
05/03/2020 09:02:51 PM (4 years ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
a715dec
Parents:
9d719e2
Message:

Make the new book

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11831 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter05/ncurses.xml

    r9d719e2 refcb393  
    5050    <para>Prepare Ncurses for compilation:</para>
    5151
    52 <screen><userinput remap="configure">./configure --prefix=/tools \
    53             --with-shared   \
    54             --without-debug \
    55             --without-ada   \
    56             --enable-widec  \
    57             --enable-overwrite</userinput></screen>
     52<screen><userinput remap="configure">./configure --prefix=/usr             \
     53            --host=$LFS_TGT           \
     54            --build=$(./config.guess) \
     55            --mandir=/usr/share/man   \
     56            --with-shared             \
     57            --without-debug           \
     58            --without-ada             \
     59            --without-normal          \
     60            --disable-db-install      \
     61            --enable-widec            \
     62            --enable-pc-files</userinput></screen>
    5863
    5964    <variablelist>
    60       <title>The meaning of the configure options:</title>
     65      <title>The meaning of the new configure options:</title>
    6166
    6267      <varlistentry>
     
    6671          compiler which may be present on the host but will not be available
    6772          once we enter the <command>chroot</command> environment.</para>
    68         </listitem>
    69       </varlistentry>
    70 
    71       <varlistentry>
    72         <term><parameter>--enable-overwrite</parameter></term>
    73         <listitem>
    74           <para>This tells Ncurses to install its header files into
    75           <filename class="directory">/tools/include</filename>, instead of
    76           <filename class="directory">/tools/include/ncurses</filename>, to
    77           ensure that other packages can find the Ncurses headers
    78           successfully.</para>
    7973        </listitem>
    8074      </varlistentry>
     
    9488      </varlistentry>
    9589
     90      <varlistentry>
     91        <term><parameter>--enable-pc-files</parameter></term>
     92        <listitem>
     93          <para>This switch generates and installs .pc files for pkg-config.
     94          </para>
     95        </listitem>
     96      </varlistentry>
     97
     98      <varlistentry>
     99        <term><parameter>--without-normal</parameter></term>
     100        <listitem>
     101          <para>This switch disables building and installing most static libraries.
     102          </para>
     103        </listitem>
     104      </varlistentry>
     105
     106      <varlistentry>
     107        <term><parameter>--disable-db-install</parameter></term>
     108        <listitem>
     109          <para>This switch disables building the terminfo database: it is not
     110          needed at this stage, and if <command>tic</command> is too old,
     111          it cannot compile recent databases.</para>
     112        </listitem>
     113      </varlistentry>
     114
    96115    </variablelist>
    97116
     
    100119<screen><userinput remap="make">make</userinput></screen>
    101120
    102     <para>This package has a test suite, but it can only be run after the
    103     package has been installed.  The tests reside in the
    104     <filename class="directory">test/</filename> directory.  See the
    105     <filename>README</filename> file in that directory for further details.
    106     </para>
     121    <para>Install the package:</para>
     122<!-- TODO: check and document -->
     123<screen><userinput remap="install">make DESTDIR=$LFS install
     124  ln -s libncursesw.so $LFS/usr/lib/libncurses.so</userinput></screen>
    107125
    108     <para>Install the package:</para>
     126    <para>Move the shared libraries to the
     127    <filename class="directory">/lib</filename> directory, where they are
     128    expected to reside:</para>
    109129
    110 <screen><userinput remap="install">make install
    111 ln -s libncursesw.so /tools/lib/libncurses.so</userinput></screen>
     130<screen><userinput remap="install">mv -v $LFS/usr/lib/libncursesw.so.6* $LFS/lib</userinput></screen>
     131
     132    <para>Because the libraries have been moved, one symlink points to
     133    a non-existent file. Recreate it:</para>
     134
     135<screen><userinput remap="install">ln -sfv ../../lib/$(readlink $LFS/usr/lib/libncursesw.so) $LFS/usr/lib/libncursesw.so</userinput></screen>
     136
    112137
    113138  </sect2>
Note: See TracChangeset for help on using the changeset viewer.