Changes in / [6af4dab:2ff3ada]


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter05/libstdc++.xml

    r6af4dab r2ff3ada  
    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>.
     108          The combination of the <parameter>DESTDIR</parameter>
     109          variable (in the <command>make install</command> command below)
     110          and this switch ensures to install the headers there.</para>
    100111        </listitem>
    101112      </varlistentry>
Note: See TracChangeset for help on using the changeset viewer.