Ignore:
Timestamp:
05/03/2020 09:02:51 PM (4 years ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
a715dec
Parents:
9d719e2
Message:

Make the new book

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11831 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/glibc.xml

    r9d719e2 refcb393  
    4444    <title>Installation of Glibc</title>
    4545
    46     <note><para>The Glibc build system is self-contained and will install
    47     perfectly, even though the compiler specs file and linker are still
    48     pointing to <filename class="directory">/tools</filename>. The specs
    49     and linker cannot be adjusted before the Glibc install because the
    50     Glibc autoconf tests would give false results and defeat the goal
    51     of achieving a clean build.</para></note>
    52 
    5346    <para>Some of the Glibc programs use the non-FHS compliant
    5447    <filename class="directory">/var/db</filename> directory to store
     
    6760<screen><userinput remap="pre">sed -i '/asm.socket.h/a# include &lt;linux/sockios.h&gt;' \
    6861   sysdeps/unix/sysv/linux/bits/socket.h</userinput></screen>
    69 -->
     62=== already done ===
    7063    <para>Create a symlink for LSB
    7164    compliance. Additionally, for x86_64, create a compatibility symlink
     
    7972    ;;
    8073esac</userinput></screen>
    81 <!--
     74
    8275    <para>Remove a file that may be left over from a previous build attempt:
    8376    </para>
     
    9386    <para>Prepare Glibc for compilation:</para>
    9487
    95 <screen><userinput remap="configure">CC="gcc -ffile-prefix-map=/tools=/usr" \
    96 ../configure --prefix=/usr                          \
    97              --disable-werror                       \
    98              --enable-kernel=&min-kernel;                    \
    99              --enable-stack-protector=strong        \
    100              --with-headers=/usr/include            \
     88<screen><userinput remap="configure">../configure --prefix=/usr                            \
     89             --disable-werror                         \
     90             --enable-kernel=&min-kernel;                      \
     91             --enable-stack-protector=strong          \
     92             --with-headers=/usr/include              \
    10193             libc_cv_slibdir=/lib</userinput></screen>
    102 
    103    <variablelist>
     94  <!-- WIP -->
     95    <variablelist>
    10496      <title>The meaning of the options and new configure parameters:</title>
    10597
    10698      <varlistentry>
    107         <term><parameter>CC="gcc -ffile-prefix-map=/tools=/usr"</parameter></term>
    108         <listitem>
    109           <para>Make GCC record any references to files in /tools in result
    110           of the compilation as if the files resided in /usr.  This avoids
    111           introduction of invalid paths in debugging symbols.</para>
     99        <term><parameter>CC="gcc -ffile-prefix-map=$LFS_DIR=$DIR"</parameter></term>
     100        <listitem>
     101          <para>Make GCC record any references to files in <filename
     102          class="directory">/usr/lib/gcc/x86_64-lfs-linux-gnu</filename>
     103          in result of the compilation as if the files resided in <filename
     104          class="directory">/usr/lib/gcc/x86_64-pc-linux-gnu</filename>.
     105          This avoids introduction of invalid paths in debugging
     106          symbols.</para>
    112107        </listitem>
    113108      </varlistentry>
     
    129124        </listitem>
    130125      </varlistentry>
    131 
     126<!-- do we need this one? -->
    132127      <varlistentry>
    133128        <term><parameter>--with-headers=/usr/include</parameter></term>
    134129        <listitem>
    135130          <para>This option tells the build system where to find the
    136           kernel API headers. By default, those headers are sought in
    137           <filename class="directory">/tools/include</filename>.</para>
     131          kernel API headers.</para>
    138132        </listitem>
    139133      </varlistentry>
Note: See TracChangeset for help on using the changeset viewer.