aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05
diff options
context:
space:
mode:
Diffstat (limited to 'chapter05')
-rw-r--r--chapter05/gcc-exp.xml3
-rw-r--r--chapter05/gcc-inst.xml2
2 files changed, 4 insertions, 1 deletions
diff --git a/chapter05/gcc-exp.xml b/chapter05/gcc-exp.xml
index 1aeecadff..0f29ccffe 100644
--- a/chapter05/gcc-exp.xml
+++ b/chapter05/gcc-exp.xml
@@ -20,6 +20,9 @@ and C++ compilers and not the other available compilers as they are, on
the average, not often used. If those other compilers are needed,
the --enable-languages parameter can be omitted.</para>
+<para><userinput>--enable-threads=posix:</userinput> This enables C++
+exception handling for multithreaded code.</para>
+
<para><userinput>ln -sf ../usr/bin/cpp:</userinput> This
creates the $LFS/lib/cpp symlink. Some packages explicitly try to find
cpp in /lib.</para>
diff --git a/chapter05/gcc-inst.xml b/chapter05/gcc-inst.xml
index 575ee0141..2ee6d383e 100644
--- a/chapter05/gcc-inst.xml
+++ b/chapter05/gcc-inst.xml
@@ -13,7 +13,7 @@ it comes with.</para>
<userinput>mkdir ../gcc-build &amp;&amp;</userinput>
<userinput>cd ../gcc-build &amp;&amp;</userinput>
<userinput>../gcc-&gcc-version;/configure --prefix=/usr --enable-languages=c,c++ \</userinput>
-<userinput>&nbsp;&nbsp;&nbsp;--disable-nls --disable-shared &amp;&amp;</userinput>
+<userinput>&nbsp;&nbsp;&nbsp;--disable-nls --disable-shared --enable-threads=posix &amp;&amp;</userinput>
<userinput>make BOOT_LDFLAGS=-static bootstrap &amp;&amp;</userinput>
<userinput>make prefix=$LFS/usr install &amp;&amp;</userinput>
<userinput>cd $LFS/lib &amp;&amp;</userinput>