Parcourir la source

Don't build the libstdc++ in Chapter 5

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3549 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Zack Winkles il y a 21 ans
Parent
commit
32a531e9c9
2 fichiers modifiés avec 9 ajouts et 1 suppressions
  1. 3 0
      chapter01/changelog.xml
  2. 6 1
      chapter05/gcc-pass2.xml

+ 3 - 0
chapter01/changelog.xml

@@ -94,6 +94,9 @@ first a summary, then a detailed log.</para>
 </itemizedlist>
 </listitem>
 
+<listitem><para>May 11th, 2004 [winkie]: Don't build the PCH header for
+libstdc++ in Chapter 5 -- it's just a waste of space.</para></listitem>
+
 <listitem><para>May 11th, 2004 [winkie]: Upgraded to Glibc 2.3.4-20040510 and
 Tar 1.14.</para></listitem>
 

+ 6 - 1
chapter05/gcc-pass2.xml

@@ -85,7 +85,8 @@ variables that override the default optimization flags.</para>
 <screen><userinput>../gcc-&gcc-version;/configure --prefix=/tools \
     --libexecdir=/tools/lib --with-local-prefix=/tools \
     --enable-clocale=gnu --enable-shared --enable-threads=posix \
-    --enable-__cxa_atexit --enable-languages=c,c++</userinput></screen>
+    --enable-__cxa_atexit --enable-languages=c,c++ \
+    --disable-libstdcxx-pch</userinput></screen>
 
 <para>The meaning of the new configure options:</para>
 
@@ -110,6 +111,10 @@ distributions.</para></listitem>
 
 <listitem><para><userinput>--enable-languages=c,c++</userinput>: This option
 ensures that both the C and C++ compilers are built.</para></listitem>
+
+<listitem><para><userinput>--disable-libstdcxx-pch</userinput>: Don't build the
+PCH (pre-compiled header) for libstdc++. It takes up a ton of space, and we
+have no use for it.</para></listitem>
 </itemizedlist>
 
 <para>Compile the package:</para>