Changeset cd152f22


Ignore:
Timestamp:
02/03/2021 09:25:21 AM (9 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, ml-11.0, multilib, trunk, xry111/git-transition, xry111/glibc-2.34, xry111/tester-nohack, xry111/usr-move
Children:
30a8646
Parents:
1f460e5
Message:

remove unneeded static libraries

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

Location:
chapter08
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • chapter08/binutils.xml

    r1f460e5 rcd152f22  
    164164<screen><userinput remap="install">make tooldir=/usr install</userinput></screen>
    165165
     166    <para>Remove useless static libraries:</para>
     167
     168<screen><userinput remap="install">rm -fv /usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes}.a</userinput></screen>
     169
    166170  </sect2>
    167171
     
    177181        <seg>addr2line, ar, as, c++filt, dwp, elfedit, gprof, ld, ld.bfd, ld.gold, nm,
    178182        objcopy, objdump, ranlib, readelf, size, strings, and strip</seg>
    179         <seg>libbfd.{a,so}, libctf.{a,so}, libctf-nobfd.{a,so}, and libopcodes.{a,so}</seg>
     183        <seg>libbfd.so, libctf.so, libctf-nobfd.so, and libopcodes.so</seg>
    180184        <seg>/usr/lib/ldscripts</seg>
    181185      </seglistitem>
  • chapter08/bzip2.xml

    r1f460e5 rcd152f22  
    9696ln -sv bzip2 /bin/bzcat</userinput></screen>
    9797
     98    <para>Remove an useless static library:</para>
     99
     100<screen><userinput remap="install">rm -fv /usr/lib/libz.a</userinput></screen>
     101
    98102  </sect2>
    99103
     
    110114        bzdiff), bzdiff, bzegrep (link to bzgrep), bzfgrep (link to bzgrep),
    111115        bzgrep, bzip2, bzip2recover, bzless (link to bzmore), and bzmore</seg>
    112         <seg>libbz2.{a,so}</seg>
     116        <seg>libbz2.so</seg>
    113117        <seg>/usr/share/doc/bzip2-&bzip2-version;</seg>
    114118      </seglistitem>
  • chapter08/e2fsprogs.xml

    r1f460e5 rcd152f22  
    123123<screen><userinput remap="install">make install</userinput></screen>
    124124
    125     <para>Make the installed static libraries writable so debugging symbols can
    126     be removed later:</para>
    127 
    128 <screen><userinput remap="install">chmod -v u+w /usr/lib/{libcom_err,libe2p,libext2fs,libss}.a</userinput></screen>
     125    <para>Remove useless static libraries:</para>
     126
     127<screen><userinput remap="install">rm -fv /usr/lib/{libcom_err,libe2p,libext2fs,libss}.a</userinput></screen>
    129128
    130129    <para>This package installs a gzipped
  • chapter08/flex.xml

    r1f460e5 rcd152f22  
    5454    <para>Prepare Flex for compilation:</para>
    5555
    56 <!-- <screen><userinput remap="configure">HELP2MAN=/tools/bin/true \ -->
    57 <screen><userinput remap="configure">./configure --prefix=/usr --docdir=/usr/share/doc/flex-&flex-version;</userinput></screen>
     56<screen><userinput remap="configure">./configure --prefix=/usr \
     57            --docdir=/usr/share/doc/flex-&flex-version; \
     58            --disable-static</userinput></screen>
    5859
    5960    <para>Compile the package:</para>
  • chapter08/libtool.xml

    r1f460e5 rcd152f22  
    6969<screen><userinput remap="install">make install</userinput></screen>
    7070
     71    <!-- dev: - -disable-static works but causes additional test failures
     72              so we manually remove the static library -->
     73
     74    <para>Remove an useless static library:</para>
     75
     76<screen><userinput remap="install">rm -fv /usr/lib/libltdl.a</userinput></screen>
     77
    7178  </sect2>
    7279
  • chapter08/ncurses.xml

    r1f460e5 rcd152f22  
    4141  <sect2 role="installation">
    4242    <title>Installation of Ncurses</title>
    43 
    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>
    4743
    4844    <para>Prepare Ncurses for compilation:</para>
     
    133129echo "INPUT(-lncursesw)" &gt; /usr/lib/libcursesw.so
    134130ln -sfv libncurses.so      /usr/lib/libcurses.so</userinput></screen>
     131
     132    <para>Remove a static library that is not handled by configure:</para>
     133
     134<screen><userinput remap="install">rm -fv /usr/lib/libncurses++w.a</userinput></screen>
    135135
    136136    <para>If desired, install the Ncurses documentation:</para>
     
    189189           libmenuw.so,
    190190           libncursesw.so,
    191            libncurses++w.a,
    192191           libpanelw.so, and their non-wide-character counterparts without "w"
    193192              in the library names.</seg>
  • chapter08/revisedchroot.xml

    r1f460e5 rcd152f22  
    3737  linkend="ch-tools-kernfsmount"/>.</para>
    3838
    39   <para>There were several static libraries that were not suppressed earlier
    40   in the chapter in order to satisfy the regression tests in several packages. These
    41   libraries are from binutils, bzip2, e2fsprogs, flex, libtool, and zlib.  If desired,
    42   remove them now:</para>
    43 
    44 <screen><userinput>rm -f /usr/lib/lib{bfd,opcodes}.a
    45 rm -f /usr/lib/libctf{,-nobfd}.a
    46 rm -f /usr/lib/libbz2.a
    47 rm -f /usr/lib/lib{com_err,e2p,ext2fs,ss}.a
    48 rm -f /usr/lib/libltdl.a
    49 rm -f /usr/lib/libfl.a
    50 rm -f /usr/lib/libz.a</userinput></screen>
    51 
    5239  <para>There are also several files installed in the /usr/lib and /usr/libexec
    5340  directories with a file name extension of .la. These are "libtool archive"
  • chapter08/zlib.xml

    r1f460e5 rcd152f22  
    6666ln -sfv ../../lib/$(readlink /usr/lib/libz.so) /usr/lib/libz.so</userinput></screen>
    6767
     68    <para>Remove an useless static library:</para>
     69
     70<screen><userinput remap="install">rm -fv /usr/lib/libz.a</userinput></screen>
     71
    6872  </sect2>
    6973
     
    7579
    7680      <seglistitem>
    77         <seg>libz.{a,so}</seg>
     81        <seg>libz.so</seg>
    7882      </seglistitem>
    7983    </segmentedlist>
Note: See TracChangeset for help on using the changeset viewer.