aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07/libstdc++-pass2.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter07/libstdc++-pass2.xml')
-rw-r--r--chapter07/libstdc++-pass2.xml20
1 files changed, 15 insertions, 5 deletions
diff --git a/chapter07/libstdc++-pass2.xml b/chapter07/libstdc++-pass2.xml
index 015d8d8ea..35b5a8baf 100644
--- a/chapter07/libstdc++-pass2.xml
+++ b/chapter07/libstdc++-pass2.xml
@@ -62,11 +62,12 @@ cd build</userinput></screen>
<para>Prepare libstdc++ for compilation:</para>
-<screen><userinput remap="configure">../libstdc++-v3/configure \
- CXXFLAGS="-g -O2 -D_GNU_SOURCE" \
- --prefix=/usr \
- --disable-multilib \
- --disable-nls \
+<screen><userinput remap="configure">../libstdc++-v3/configure \
+ CXXFLAGS="-g -O2 -D_GNU_SOURCE" \
+ --prefix=/usr \
+ --disable-multilib \
+ --disable-nls \
+ --host=$(uname -m)-lfs-linux-gnu \
--disable-libstdcxx-pch</userinput></screen>
<variablelist>
@@ -81,6 +82,15 @@ cd build</userinput></screen>
</varlistentry>
<varlistentry>
+ <term><parameter>--host=$(uname -m)-lfs-linux-gnu</parameter></term>
+ <listitem>
+ <para>We have to mimic what would happen if this package were built
+ as part of a full compiler build. This switch would be passed to
+ configure by GCC's build machinery.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><parameter>--disable-libstdcxx-pch</parameter></term>
<listitem>
<para>This switch prevents the installation of precompiled