Author: bdubbs
Date: Fri Aug  2 16:56:29 2013
New Revision: 11569

Log:
Added sections on stripping and removing .la files to 
Notes on Buiiding Software in the Introduction.

Modified:
   trunk/BOOK/introduction/important/building-notes.xml
   trunk/BOOK/introduction/welcome/changelog.xml

Modified: trunk/BOOK/introduction/important/building-notes.xml
==============================================================================
--- trunk/BOOK/introduction/important/building-notes.xml        Fri Aug  2 
13:27:17 2013        (r11568)
+++ trunk/BOOK/introduction/important/building-notes.xml        Fri Aug  2 
16:56:29 2013        (r11569)
@@ -359,4 +359,36 @@
 
   </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>

Modified: trunk/BOOK/introduction/welcome/changelog.xml
==============================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml       Fri Aug  2 13:27:17 
2013        (r11568)
+++ trunk/BOOK/introduction/welcome/changelog.xml       Fri Aug  2 16:56:29 
2013        (r11569)
@@ -47,6 +47,11 @@
       <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>
         <listitem>
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to