mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-26 08:42:12 +08:00
Added sections on stripping and removing .la files to
Notes on Buiiding Software in the Introduction. git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@11569 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
c4b04559ed
commit
3c310620dc
@ -359,4 +359,36 @@ chmod 755 blfs-yes-test2</userinput></screen>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 id="stripping">
|
||||
<title>Stripping One More Time</title>
|
||||
|
||||
<para>In LFS, stripping of debugging symbols was discussed a couple of
|
||||
times. When building BLFS packages, there are generally no special
|
||||
instructions that discuss stripping again. It is probably not a good
|
||||
idea to strip an executable or a library while it is in use, so exiting
|
||||
any windowing environment is a good idea. Then you can do:</para>
|
||||
|
||||
<screen><userinput>find /{,usr/}{bin,lib,sbin} -type f -exec strip --strip-unneeded {} \;</userinput></screen>
|
||||
|
||||
<para>If you install programs in other directories such as /opt or /usr/local,
|
||||
you may want to strip the files there too.</para>
|
||||
|
||||
<para>For more information on stripping, see <ulink
|
||||
url="http://www.technovelty.org/linux/stripping-shared-libraries.html"/>.</para>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 id="libtool">
|
||||
<title>Libtool files</title>
|
||||
|
||||
<para>One of the side effects of packages that use Autotools, including
|
||||
libtool, is that they create many files with an .la extention. These
|
||||
files are not needed in an LFS environment. If there are conflicts with
|
||||
pkgconfig entries, they can actually prevent successful builds. You
|
||||
may want to consider removing these files periodically:</para>
|
||||
|
||||
<screen><userinput>find /lib /usr/lib -name \*.la -delete</userinput></screen>
|
||||
|
||||
</sect2>
|
||||
|
||||
</sect1>
|
||||
|
@ -46,6 +46,11 @@
|
||||
<listitem>
|
||||
<para>August 2nd, 2013</para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>[bdubbs] - Added sections on stripping and removing
|
||||
.la files to Notes on Buiiding Software in the Introduction.
|
||||
Fixes <ulink url="&blfs-ticket-root;3764">#3764</ulink></para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>[bdubbs] - Update to libdiscid-0.5.2.</para>
|
||||
</listitem>
|
||||
|
Loading…
Reference in New Issue
Block a user