Changeset 7f17762


Ignore:
Timestamp:
08/21/2022 01:00:07 PM (20 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
11.2, 11.3, 12.0, 12.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18, xry111/soup3, xry111/xf86-video-removal
Children:
889d6c4
Parents:
70957a40
Message:

building-notes: add more info about stripping

File:
1 edited

Legend:

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

    r70957a40 r7f17762  
    500500
    501501    <para>
    502       In LFS, stripping of debugging symbols was discussed a couple of
    503       times.  When building BLFS packages, there are generally no special
    504       instructions that discuss stripping again. Stripping can be done
    505       while installing a package, or afterwards.
     502      In LFS, stripping of debugging symbols and unneeded symbol table
     503      entries was discussed a couple of times.  When building BLFS packages,
     504      there are generally no special instructions that discuss stripping
     505      again. Stripping can be done while installing a package, or
     506      afterwards.
    506507    </para>
    507508
     
    515516      generalities can be listed here:
    516517    </para>
     518
     519    <note>
     520      <para>
     521        The following methods using the feature of a building system
     522        (autotools, meson, or cmake) will not strip static libraries if any
     523        is installed.  Fortunately there are not too many static libraries
     524        in BLFS, and a static library can always be stripped safely by
     525        running <command>strip --strip-unneeded</command> on it manually.
     526      </para>
     527    </note>
    517528
    518529    <itemizedlist>
     
    531542          The packages using the meson build system can accept
    532543          <parameter>-Dstrip=true</parameter> when running
    533           <command>meson</command>.
     544          <command>meson</command>.  If you've forgot to add this option
     545          running the <command>meson</command>, you can also run
     546          <command>meson install --strip</command> instead of
     547          <command>ninja install</command>.
    534548        </para>
    535549      </listitem>
     
    552566          <parameter>-g&lt;something&gt;</parameter> options
    553567          in C/C++ calls. How to do that is very specific for each
    554           package, so it will not be developed here. See also below
     568          package.  And, it does not remove unneeded symbol table entries.
     569          So it will not be explained in detail here. See also below
    555570          the paragraphs about optimization.
    556571        </para>
     
    572587      condition for the kernel to use the old (deleted) file. The script
    573588      below is just an example. Feel free to add stronger error detection,
    574       other directories to scan, ... It should be run as the &root; user:
     589      other directories to scan, etcetera. It should be run as the &root; user:
    575590    </para>
    576591
Note: See TracChangeset for help on using the changeset viewer.