aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2022-02-15 09:56:39 -0600
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2022-02-15 09:56:39 -0600
commit2ff3adaa70c5cfd0bfc25294a6b12c47592f2ff8 (patch)
tree099b4fa2ad3eb4fa8b5e9fca2a351fa552e37f1a
parent6af4dabc16cc044f4d65372cdbd203310df08e20 (diff)
parent2cf3c176cf6a4be4109e70bb0f0430319ea60fc1 (diff)
Merge branch 'trunk' of git.linuxfromscratch.org:lfs into trunk
-rw-r--r--chapter05/libstdc++.xml17
1 files changed, 14 insertions, 3 deletions
diff --git a/chapter05/libstdc++.xml b/chapter05/libstdc++.xml
index 750868591..5a70026ed 100644
--- a/chapter05/libstdc++.xml
+++ b/chapter05/libstdc++.xml
@@ -92,11 +92,22 @@ cd build</userinput></screen>
<varlistentry>
<term><parameter>--with-gxx-include-dir=/tools/$LFS_TGT/include/c++/&gcc-version;</parameter></term>
<listitem>
- <para>This is the location where the C++ compiler should search for the
- standard include files. In a normal build, this information
+ <para>This specifies the installation directory for include files.
+ Because libstdc++ is the standard C++ library for LFS, this
+ directory should match the location where the C++ compiler
+ (<command>$LFS_TGT-g++</command>) would search for the
+ standard C++ include files. In a normal build, this information
is automatically passed to the libstdc++ <command>configure</command>
options from the top level directory. In our case, this information
- must be explicitly given.</para>
+ must be explicitly given.
+ The C++ compiler will prepend the sysroot path
+ <filename class="directory">$LFS</filename> (specified building
+ GCC pass 1) to the include file search path, so it will actually
+ search in
+ <filename class="directory">$LFS/tools/$LFS_TGT/include/c++/&gcc-version;</filename>.
+ The combination of the <parameter>DESTDIR</parameter>
+ variable (in the <command>make install</command> command below)
+ and this switch ensures to install the headers there.</para>
</listitem>
</varlistentry>