Ignore:
Timestamp:
01/24/2024 12:26:42 PM (4 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/arm64
Children:
648f145
Parents:
9f894d5 (diff), 5bef8f2 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'origin/trunk' into xry111/arm64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/ncurses.xml

    r9f894d5 rd8c2d84  
    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.