Changeset 678acc1


Ignore:
Timestamp:
08/05/2024 04:02:35 AM (6 weeks ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.2, 12.2-rc1, multilib, trunk, xry111/arm64, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib
Children:
653ead1
Parents:
7119cf2a
Message:

toolchaintechnotes: Update the paragraph describing ch05 glibc

We no longer pass CC="$LFS_TGT-gcc -nostdinc -isysroot" since
cross-chap5.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • part3intro/toolchaintechnotes.xml

    r7119cf2a r678acc1  
    360360    <para>Next comes glibc. The most important
    361361    considerations for building glibc are the compiler, binary tools, and
    362     kernel headers. The compiler is generally not an issue since glibc will
    363     always use the compiler relating to the <parameter>--host</parameter>
     362    kernel headers. The compiler and binary tools are generally not an issue
     363    since glibc will always those relating to the <parameter>--host</parameter>
    364364    parameter passed to its configure script; e.g., in our case, the compiler
    365     will be <command>$LFS_TGT-gcc</command>. The binary tools and kernel
    366     headers can be a bit more complicated. Therefore, we take no risks and use
    367     the available configure switches to enforce the correct selections. After
     365    will be <command>$LFS_TGT-gcc</command> and the <command>readelf</command>
     366    tool will be <command>$LFS_TGT-readelf</command>. The kernel headers can
     367    be a bit more complicated. Therefore, we take no risks and use
     368    the available configure switch to enforce the correct selection. After
    368369    the run of <command>configure</command>, check the contents of the
    369370    <filename>config.make</filename> file in the <filename
    370371    class="directory">build</filename> directory for all important details.
    371     Note the use of <parameter>CC="$LFS_TGT-gcc"</parameter> (with
    372     <envar>$LFS_TGT</envar> expanded) to control which binary tools are used
    373     and the use of the <parameter>-nostdinc</parameter> and
    374     <parameter>-isystem</parameter> flags to control the compiler's include
    375     search path. These items highlight an important aspect of the glibc
     372    These items highlight an important aspect of the glibc
    376373    package&mdash;it is very self-sufficient in terms of its build machinery,
    377374    and generally does not rely on toolchain defaults.</para>
Note: See TracChangeset for help on using the changeset viewer.