Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/ncurses.xml

    r6dff9ef r943f225  
    1 <?xml version="1.0" encoding="ISO-8859-1"?>
     1<?xml version="1.0" encoding="UTF-8"?>
    22<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
    33  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
     
    7979        <term><parameter>--with-manpage-format=normal</parameter></term>
    8080        <listitem>
    81           <para>This prevents Ncurses installing compressed manual
     81          <para>This prevents Ncurses from installing compressed manual
    8282          pages, which may happen if the host distribution itself
    8383          has compressed manual pages.</para>
     
    9595        <term><parameter>--without-normal</parameter></term>
    9696        <listitem>
    97           <para>This prevents Ncurses building and installing static C
     97          <para>This prevents Ncurses from building and installing static C
    9898          libraries.</para>
    9999        </listitem>
     
    103103        <term><parameter>--without-debug</parameter></term>
    104104        <listitem>
    105           <para>This prevents Ncurses building and installing debug
     105          <para>This prevents Ncurses from building and installing debug
    106106          libraries.</para>
    107107        </listitem>
     
    157157
    158158<screen><userinput remap="install">make DESTDIR=$LFS TIC_PATH=$(pwd)/build/progs/tic install
    159 echo "INPUT(-lncursesw)" > $LFS/usr/lib/libncurses.so</userinput></screen>
     159ln -sv libncursesw.so $LFS/usr/lib/libncurses.so
     160sed -e 's/^#if.*XOPEN.*$/#if 1/' \
     161    -i $LFS/usr/include/curses.h</userinput></screen>
    160162<!--
    161163    <para>Remove an unneeded static library not handled by
     
    177179
    178180      <varlistentry>
    179         <term><command>echo "INPUT(-lncursesw)" > $LFS/usr/lib/libncurses.so</command></term>
     181        <term><command>ln -sv libncursesw.so $LFS/usr/lib/libncurses.so</command></term>
    180182        <listitem>
    181183          <para>The <filename>libncurses.so</filename> library is needed by
    182           a few packages we will build soon. We create this small linker
    183           script, as this is what is done in <xref
    184           linkend="chapter-building-system"/>.</para>
     184          a few packages we will build soon. We create this symlink to use
     185          <filename>libncursesw.so</filename> as a replacement.</para>
     186        </listitem>
     187      </varlistentry>
     188
     189      <varlistentry>
     190        <term><command>sed -e 's/^#if.*XOPEN.*$/#if 1/' ...</command></term>
     191        <listitem>
     192          <para>The header file <filename>curses.h</filename> contains
     193          the definition of various Ncurses data structures.  With different
     194          preprocessor macro definitions two different sets of the data
     195          structure definition may be used: the 8-bit definition is
     196          compatible with <filename>libncurses.so</filename> and the
     197          wide-character definition is compatible with
     198          <filename>libncursesw.so</filename>.  Since we are using
     199          <filename>libncursesw.so</filename> as a replacement of
     200          <filename>libncurses.so</filename>, edit the header file so it
     201          will always use the wide-character data structure definition
     202          compatible with <filename>libncursesw.so</filename>.</para>
    185203        </listitem>
    186204      </varlistentry>
Note: See TracChangeset for help on using the changeset viewer.