Ignore:
Timestamp:
03/10/2018 07:32:56 PM (6 years ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
ba7bf15c
Parents:
c92ba3b
Message:

Change instructions for removing .la files, since openldap needs to
keep them in /usr/lib/openldap.
Also some cosmetics on xml...

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@19934 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • introduction/important/building-notes.xml

    rc92ba3b raade25df  
    406406    <title>Stripping One More Time</title>
    407407
    408     <para>In LFS, stripping of debugging symbols was discussed a couple of
    409     times.  When building BLFS packages, there are generally no special
    410     instructions that discuss stripping again.  It is probably not a good
    411     idea to strip an executable or a library while it is in use, so exiting
    412     any windowing environment is a good idea.  Then you can do:</para>
    413 
    414     <screen><userinput>find /{,usr/}{bin,lib,sbin} -type f -exec strip --strip-unneeded {} \;</userinput></screen>
    415 
    416     <para>If you install programs in other directories such as /opt or /usr/local,
    417     you may want to strip the files there too.</para>
    418 
    419     <para>For more information on stripping, see <ulink
    420     url="http://www.technovelty.org/linux/stripping-shared-libraries.html"/>.</para>
     408    <para>
     409      In LFS, stripping of debugging symbols was discussed a couple of
     410      times.  When building BLFS packages, there are generally no special
     411      instructions that discuss stripping again.  It is probably not a good
     412      idea to strip an executable or a library while it is in use, so exiting
     413      any windowing environment is a good idea.  Then you can do:
     414    </para>
     415
     416<screen><userinput>find /{,usr/}{bin,lib,sbin} -type f -exec strip --strip-unneeded {} \;</userinput></screen>
     417
     418    <para>
     419      If you install programs in other directories such as <filename
     420      class="directory">/opt</filename> or <filename
     421      class="directory">/usr/local</filename>, you may want to strip the files
     422      there too.
     423    </para>
     424
     425    <para>
     426      For more information on stripping, see <ulink
     427      url="http://www.technovelty.org/linux/stripping-shared-libraries.html"/>.
     428    </para>
    421429
    422430  </sect2>
     
    425433    <title>Libtool files</title>
    426434
    427     <para>One of the side effects of packages that use Autotools, including
    428     libtool, is that they create many files with an .la extension.  These
    429     files are not needed in an LFS environment.  If there are conflicts with
    430     pkgconfig entries, they can actually prevent successful builds.  You
    431     may want to consider removing these files periodically:</para>
    432 
    433     <screen><userinput>find /lib /usr/lib -not -path "*Image*" -a -name \*.la -delete</userinput></screen>
    434 
    435     <para>The above command removes all .la files with the exception of those that have
    436     "Image" as a part of the path.  These .la files are used by the
    437     ImageMagick programs.  There may be other exceptions by packages not in BLFS.</para>
     435    <para>
     436      One of the side effects of packages that use Autotools, including
     437      libtool, is that they create many files with an .la extension.  These
     438      files are not needed in an LFS environment.  If there are conflicts with
     439      pkgconfig entries, they can actually prevent successful builds.  You
     440      may want to consider removing these files periodically:
     441    </para>
     442
     443<screen><userinput>find /lib /usr/lib -not -path "*Image*"    \
     444                -a -not -path "*openldap*" \
     445                -a -name \*.la -delete</userinput></screen>
     446
     447    <para>
     448      The above command removes all .la files with the exception of those that
     449      have <quote>Image</quote> or <quote>openldap</quote> as a part of the
     450      path.  These .la files are used by the ImageMagick and openldap programs,
     451      respectively.  There may be other exceptions by packages not in BLFS.
     452    </para>
    438453
    439454  </sect2>
Note: See TracChangeset for help on using the changeset viewer.