Changeset 8b539af


Ignore:
Timestamp:
10/09/2022 04:46:28 PM (19 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
32f686f, 44e2a04, 6e24d20
Parents:
312d536
Message:

First attempt at clarifying "Important Preliminary Material"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • part3intro/toolchaintechnotes.xml

    r312d536 r8b539af  
    301301    <command>ld</command> by passing it the <parameter>--verbose</parameter>
    302302    flag. For example, <command>$LFS_TGT-ld --verbose | grep SEARCH</command>
    303     will illustrate the current search paths and their order. It shows which
    304     files are linked by <command>ld</command> by compiling a dummy program and
    305     passing the <parameter>--verbose</parameter> switch to the linker. For
    306     example,
    307     <command>$LFS_TGT-gcc dummy.c -Wl,--verbose 2&gt;&amp;1 | grep succeeded</command>
    308     will show all the files successfully opened during the linking.</para>
     303    will illustrate the current search paths and their order. Note that this
     304    example can be run as shown only while being user
     305    <systemitem class="username">lfs</systemitem>. If you come back to this
     306    page later, replace <command>$LFS_TGT-ld</command> with just
     307    <command>ld</command>.</para>
    309308
    310309    <para>The next package installed is gcc. An example of what can be
     
    319318    operation of <command>gcc</command> itself, the same search paths are not
    320319    necessarily used. To find out which standard linker <command>gcc</command>
    321     will use, run: <command>$LFS_TGT-gcc -print-prog-name=ld</command>.</para>
     320    will use, run: <command>$LFS_TGT-gcc -print-prog-name=ld</command>. Again,
     321    remove the <command>$LFS_TGT-</command> part if coming back to this
     322    later.</para>
    322323
    323324    <para>Detailed information can be obtained from <command>gcc</command> by
    324325    passing it the <parameter>-v</parameter> command line option while compiling
    325     a dummy program. For example, <command>gcc -v dummy.c</command> will show
     326    a program. For example, <command>$LFS_TGT-gcc -v
     327    <replaceable>example.c</replaceable></command> (or without <command>
     328    $LFS_TGT-</command> if coming back later to this) will show
    326329    detailed information about the preprocessor, compilation, and assembly
    327     stages, including <command>gcc</command>'s included search paths and their
    328     order.</para>
     330    stages, including <command>gcc</command>'s search paths for included
     331    headers and their order.</para>
    329332
    330333    <para>Next installed are sanitized Linux API headers. These allow the
Note: See TracChangeset for help on using the changeset viewer.