Changeset 174d1bf


Ignore:
Timestamp:
02/15/2022 07:29:35 AM (8 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
11.1, 11.1-rc1, 11.2, 11.2-rc1, arm, multilib, s6-init, trunk, xry111/arm64, xry111/clfs-ng, xry111/lfs-next, xry111/queue-11.3
Children:
2cf3c17
Parents:
81d3242
Message:

libstdc++ pass 1: rephrase the explanation for --with-gxx-include-dir

I just received a private mail from some guy obviously puzzled by this
switch. Expand the explanation a little to make it more clear.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter05/libstdc++.xml

    r81d3242 r174d1bf  
    9393        <term><parameter>--with-gxx-include-dir=/tools/$LFS_TGT/include/c++/&gcc-version;</parameter></term>
    9494        <listitem>
    95           <para>This is the location where the C++ compiler should search for the
    96           standard include files. In a normal build, this information
     95          <para>This specifies the installation directory for include files.
     96          Because libstdc++ is the standard C++ library for LFS, this
     97          directory should match the location where the C++ compiler
     98          (<command>$LFS_TGT-g++</command>) would search for the
     99          standard C++ include files. In a normal build, this information
    97100          is automatically passed to the libstdc++ <command>configure</command>
    98101          options from the top level directory. In our case, this information
    99           must be explicitly given.</para>
     102          must be explicitly given.
     103          The C++ compiler will prepend the sysroot path
     104          <filename class="directory">$LFS</filename> (specified building
     105          GCC pass 1) to the include file search path, so it will actually
     106          search in
     107          <filename class="directory">$LFS/tools/$LFS_TGT/include/c++/&gcc-version;</filename>.  The combination of the <parameter>DESTDIR</parameter>
     108          variable (in the <command>make install</command> command below)
     109          and this switch ensures to install the headers there.</para>
    100110        </listitem>
    101111      </varlistentry>
Note: See TracChangeset for help on using the changeset viewer.