Author: xry111 Date: Wed Feb 3 01:25:21 2021 New Revision: 12122 Log: remove unneeded static libraries
Modified: trunk/BOOK/chapter08/binutils.xml trunk/BOOK/chapter08/bzip2.xml trunk/BOOK/chapter08/e2fsprogs.xml trunk/BOOK/chapter08/flex.xml trunk/BOOK/chapter08/libtool.xml trunk/BOOK/chapter08/ncurses.xml trunk/BOOK/chapter08/revisedchroot.xml trunk/BOOK/chapter08/zlib.xml Modified: trunk/BOOK/chapter08/binutils.xml ============================================================================== --- trunk/BOOK/chapter08/binutils.xml Wed Feb 3 01:03:51 2021 (r12121) +++ trunk/BOOK/chapter08/binutils.xml Wed Feb 3 01:25:21 2021 (r12122) @@ -163,6 +163,10 @@ <screen><userinput remap="install">make tooldir=/usr install</userinput></screen> + <para>Remove useless static libraries:</para> + +<screen><userinput remap="install">rm -fv /usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes}.a</userinput></screen> + </sect2> <sect2 id="contents-binutils" role="content"> @@ -176,7 +180,7 @@ <seglistitem> <seg>addr2line, ar, as, c++filt, dwp, elfedit, gprof, ld, ld.bfd, ld.gold, nm, objcopy, objdump, ranlib, readelf, size, strings, and strip</seg> - <seg>libbfd.{a,so}, libctf.{a,so}, libctf-nobfd.{a,so}, and libopcodes.{a,so}</seg> + <seg>libbfd.so, libctf.so, libctf-nobfd.so, and libopcodes.so</seg> <seg>/usr/lib/ldscripts</seg> </seglistitem> </segmentedlist> Modified: trunk/BOOK/chapter08/bzip2.xml ============================================================================== --- trunk/BOOK/chapter08/bzip2.xml Wed Feb 3 01:03:51 2021 (r12121) +++ trunk/BOOK/chapter08/bzip2.xml Wed Feb 3 01:25:21 2021 (r12122) @@ -95,6 +95,10 @@ ln -sv bzip2 /bin/bunzip2 ln -sv bzip2 /bin/bzcat</userinput></screen> + <para>Remove an useless static library:</para> + +<screen><userinput remap="install">rm -fv /usr/lib/libz.a</userinput></screen> + </sect2> <sect2 id="contents-bzip2" role="content"> @@ -109,7 +113,7 @@ <seg>bunzip2 (link to bzip2), bzcat (link to bzip2), bzcmp (link to bzdiff), bzdiff, bzegrep (link to bzgrep), bzfgrep (link to bzgrep), bzgrep, bzip2, bzip2recover, bzless (link to bzmore), and bzmore</seg> - <seg>libbz2.{a,so}</seg> + <seg>libbz2.so</seg> <seg>/usr/share/doc/bzip2-&bzip2-version;</seg> </seglistitem> </segmentedlist> Modified: trunk/BOOK/chapter08/e2fsprogs.xml ============================================================================== --- trunk/BOOK/chapter08/e2fsprogs.xml Wed Feb 3 01:03:51 2021 (r12121) +++ trunk/BOOK/chapter08/e2fsprogs.xml Wed Feb 3 01:25:21 2021 (r12122) @@ -122,10 +122,9 @@ <screen><userinput remap="install">make install</userinput></screen> - <para>Make the installed static libraries writable so debugging symbols can - be removed later:</para> + <para>Remove useless static libraries:</para> -<screen><userinput remap="install">chmod -v u+w /usr/lib/{libcom_err,libe2p,libext2fs,libss}.a</userinput></screen> +<screen><userinput remap="install">rm -fv /usr/lib/{libcom_err,libe2p,libext2fs,libss}.a</userinput></screen> <para>This package installs a gzipped <filename class="extension">.info</filename> file but doesn't update the Modified: trunk/BOOK/chapter08/flex.xml ============================================================================== --- trunk/BOOK/chapter08/flex.xml Wed Feb 3 01:03:51 2021 (r12121) +++ trunk/BOOK/chapter08/flex.xml Wed Feb 3 01:25:21 2021 (r12122) @@ -53,8 +53,9 @@ <para>Prepare Flex for compilation:</para> -<!-- <screen><userinput remap="configure">HELP2MAN=/tools/bin/true \ --> -<screen><userinput remap="configure">./configure --prefix=/usr --docdir=/usr/share/doc/flex-&flex-version;</userinput></screen> +<screen><userinput remap="configure">./configure --prefix=/usr \ + --docdir=/usr/share/doc/flex-&flex-version; \ + --disable-static</userinput></screen> <para>Compile the package:</para> Modified: trunk/BOOK/chapter08/libtool.xml ============================================================================== --- trunk/BOOK/chapter08/libtool.xml Wed Feb 3 01:03:51 2021 (r12121) +++ trunk/BOOK/chapter08/libtool.xml Wed Feb 3 01:25:21 2021 (r12122) @@ -68,6 +68,13 @@ <screen><userinput remap="install">make install</userinput></screen> + <!-- dev: - -disable-static works but causes additional test failures + so we manually remove the static library --> + + <para>Remove an useless static library:</para> + +<screen><userinput remap="install">rm -fv /usr/lib/libltdl.a</userinput></screen> + </sect2> Modified: trunk/BOOK/chapter08/ncurses.xml ============================================================================== --- trunk/BOOK/chapter08/ncurses.xml Wed Feb 3 01:03:51 2021 (r12121) +++ trunk/BOOK/chapter08/ncurses.xml Wed Feb 3 01:25:21 2021 (r12122) @@ -41,10 +41,6 @@ <sect2 role="installation"> <title>Installation of Ncurses</title> - <para>Don't install a static library that is not handled by configure:</para> - -<screen><userinput remap="pre">sed -i '/LIBTOOL_INSTALL/d' c++/Makefile.in</userinput></screen> - <para>Prepare Ncurses for compilation:</para> <screen><userinput remap="configure">./configure --prefix=/usr \ @@ -133,6 +129,10 @@ echo "INPUT(-lncursesw)" > /usr/lib/libcursesw.so ln -sfv libncurses.so /usr/lib/libcurses.so</userinput></screen> + <para>Remove a static library that is not handled by configure:</para> + +<screen><userinput remap="install">rm -fv /usr/lib/libncurses++w.a</userinput></screen> + <para>If desired, install the Ncurses documentation:</para> <screen><userinput remap="install">mkdir -v /usr/share/doc/ncurses-&ncurses-version; @@ -188,7 +188,6 @@ libformw.so, libmenuw.so, libncursesw.so, - libncurses++w.a, libpanelw.so, and their non-wide-character counterparts without "w" in the library names.</seg> <seg> Modified: trunk/BOOK/chapter08/revisedchroot.xml ============================================================================== --- trunk/BOOK/chapter08/revisedchroot.xml Wed Feb 3 01:03:51 2021 (r12121) +++ trunk/BOOK/chapter08/revisedchroot.xml Wed Feb 3 01:25:21 2021 (r12122) @@ -36,19 +36,6 @@ linkend="ch-tools-bindmount"/> and <xref linkend="ch-tools-kernfsmount"/>.</para> - <para>There were several static libraries that were not suppressed earlier - in the chapter in order to satisfy the regression tests in several packages. These - libraries are from binutils, bzip2, e2fsprogs, flex, libtool, and zlib. If desired, - remove them now:</para> - -<screen><userinput>rm -f /usr/lib/lib{bfd,opcodes}.a -rm -f /usr/lib/libctf{,-nobfd}.a -rm -f /usr/lib/libbz2.a -rm -f /usr/lib/lib{com_err,e2p,ext2fs,ss}.a -rm -f /usr/lib/libltdl.a -rm -f /usr/lib/libfl.a -rm -f /usr/lib/libz.a</userinput></screen> - <para>There are also several files installed in the /usr/lib and /usr/libexec directories with a file name extension of .la. These are "libtool archive" files. As already said, they are only useful when linking with static Modified: trunk/BOOK/chapter08/zlib.xml ============================================================================== --- trunk/BOOK/chapter08/zlib.xml Wed Feb 3 01:03:51 2021 (r12121) +++ trunk/BOOK/chapter08/zlib.xml Wed Feb 3 01:25:21 2021 (r12122) @@ -65,6 +65,10 @@ <screen><userinput remap="install">mv -v /usr/lib/libz.so.* /lib ln -sfv ../../lib/$(readlink /usr/lib/libz.so) /usr/lib/libz.so</userinput></screen> + <para>Remove an useless static library:</para> + +<screen><userinput remap="install">rm -fv /usr/lib/libz.a</userinput></screen> + </sect2> <sect2 id="contents-zlib" role="content"> @@ -74,7 +78,7 @@ <segtitle>Installed libraries</segtitle> <seglistitem> - <seg>libz.{a,so}</seg> + <seg>libz.so</seg> </seglistitem> </segmentedlist> -- http://lists.linuxfromscratch.org/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page