Ignore:
Timestamp:
03/15/2015 11:29:31 PM (9 years ago)
Author:
Bruce Dubbs <bdubbs@…>
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, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, 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:
8f7d07eb
Parents:
ecd016b
Message:

Remove non-essential static libraries from the installation. Added a new
section in Chapter 6 Introduction, supressed many static libraries in different
packages, and removed the remaining in the Cleaning Up section.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10880 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/ncurses.xml

    recd016b r73b2841  
    4242    <title>Installation of Ncurses</title>
    4343
    44     <!-- FIXME: Uncomment if using a dated ncurses release instead of a numbered
    45          one.
    46 
    47     <para>Since the release of Ncurses-&ncurses-version;, some bugs have been fixed
    48     and features added. The most important news are .......
    49     To get these fixes and features, apply the rollup patch:</para>
    50 
    51 <screen><userinput>bzcat ../&ncurses-rollup-patch; | patch -Np1</userinput></screen>
    52     -->
     44    <para>Don't install a static library that is not handled by configure:</para>
     45
     46<screen><userinput remap="pre">sed -i '/LIBTOOL_INSTALL/d' c++/Makefile.in</userinput></screen>
    5347
    5448    <para>Prepare Ncurses for compilation:</para>
     
    5852            --with-shared           \
    5953            --without-debug         \
     54            --without-normal        \
    6055            --enable-pc-files       \
    6156            --enable-widec</userinput></screen>
     
    8681      </varlistentry>
    8782
     83      <varlistentry>
     84        <term><parameter>--without-normal</parameter></term>
     85        <listitem>
     86          <para>This switch disables building and installing most static libraries.
     87          </para>
     88        </listitem>
     89      </varlistentry>
     90
    8891    </variablelist>
    8992
     
    120123    rm -vf                    /usr/lib/lib${lib}.so
    121124    echo "INPUT(-l${lib}w)" &gt; /usr/lib/lib${lib}.so
    122     ln -sfv lib${lib}w.a      /usr/lib/lib${lib}.a
    123125    ln -sfv ${lib}w.pc        /usr/lib/pkgconfig/${lib}.pc
    124 done
    125 
    126 ln -sfv libncurses++w.a /usr/lib/libncurses++.a</userinput></screen>
     126done</userinput></screen>
    127127
    128128    <para>Finally, make sure that old applications that look for
     
    132132<screen><userinput remap="install">rm -vf                     /usr/lib/libcursesw.so
    133133echo "INPUT(-lncursesw)" &gt; /usr/lib/libcursesw.so
    134 ln -sfv libncurses.so      /usr/lib/libcurses.so
    135 ln -sfv libncursesw.a      /usr/lib/libcursesw.a
    136 ln -sfv libncurses.a       /usr/lib/libcurses.a</userinput></screen>
     134ln -sfv libncurses.so      /usr/lib/libcurses.so</userinput></screen>
    137135
    138136    <para>If desired, install the Ncurses documentation:</para>
     
    169167
    170168      <seglistitem>
    171         <seg>captoinfo (link to tic), clear, infocmp, infotocap (link to tic),
    172         ncursesw5-config, reset (link to tset), tabs, tic, toe, tput, and tset</seg>
    173         <seg>libcursesw.{a,so} (symlink and linker script to libncursesw.{a,so}),
    174         libformw.{a,so}, libmenuw.{a,so}, libncurses++w.a, libncursesw.{a,so},
    175         libpanelw.{a,so}, and their non-wide-character counterparts without "w"
    176         in the library names.</seg>
    177         <seg>/usr/share/tabset, /usr/share/terminfo, and
    178         /usr/share/doc/ncurses-&ncurses-version;</seg>
     169        <seg>
     170           captoinfo (link to tic),
     171           clear,
     172           infocmp,
     173           infotocap (link to tic),
     174           ncursesw5-config,
     175           reset (link to tset),
     176           tabs,
     177           tic,
     178           toe,
     179           tput, and
     180           tset
     181        </seg>
     182        <seg>
     183           libcursesw.so (symlink and linker script to libncursesw.so),
     184           libformw.so,
     185           libmenuw.so,
     186           libncursesw.so,
     187           libpanelw.so, and their non-wide-character counterparts without "w"
     188              in the library names.</seg>
     189        <seg>
     190           /usr/share/tabset,
     191           /usr/share/terminfo, and
     192           /usr/share/doc/ncurses-&ncurses-version;
     193        </seg>
    179194      </seglistitem>
    180195    </segmentedlist>
Note: See TracChangeset for help on using the changeset viewer.