Ignore:
Timestamp:
01/21/2024 04:27:45 PM (3 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, 12.1-rc1, multilib, trunk, xry111/arm64, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.1, xry111/mips64el, xry111/update-glibc
Children:
0253841d
Parents:
d282f88
git-author:
Xi Ruoyao <xry111@…> (01/19/2024 04:57:51 AM)
git-committer:
Xi Ruoyao <xry111@…> (01/21/2024 04:27:45 PM)
Message:

ncurses: Use symlinks instead of linker scripts

The effect will not change, but with symlinks ld can save some time
invoking open(), read(), etc. syscalls and parsing the linker scripts.

Note that I've also removed "libcursesw" symlink because this library
has never existed. Instead libcurses.so is created as a symlink
direct to libncursesw.so.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/ncurses.xml

    rd282f88 r943f225  
    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
     159ln -sv libncursesw.so $LFS/usr/lib/libncurses.so
    160160sed -e 's/^#if.*XOPEN.*$/#if 1/' \
    161161    -i $LFS/usr/include/curses.h</userinput></screen>
     
    179179
    180180      <varlistentry>
    181         <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>
    182182        <listitem>
    183183          <para>The <filename>libncurses.so</filename> library is needed by
    184           a few packages we will build soon. We create this small linker
    185           script, as this is what is done in <xref
    186           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>
    187186        </listitem>
    188187      </varlistentry>
Note: See TracChangeset for help on using the changeset viewer.