Bladeren bron

Removed installation of gcc 2.95.3 c++ compiler, added Zack's patch to fix the return-type problem

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2759 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Jeremy Utley 22 jaren geleden
bovenliggende
commit
56029fbfe4
3 gewijzigde bestanden met toevoegingen van 11 en 7 verwijderingen
  1. 3 0
      chapter01/changelog.xml
  2. 6 0
      chapter04/chapter04.xml
  3. 2 7
      chapter06/gcc-2953-inst.xml

+ 3 - 0
chapter01/changelog.xml

@@ -83,6 +83,9 @@
 </itemizedlist>
 </para></listitem>
 
+<listitem><para>September 9th, 2003 [jeremy]: Chapter 6 - GCC 2.95.3:
+Removed compilation of C++, added Zack's return-type patch.</para></listitem>
+
 <listitem><para>September 9th, 2003 [jeremy]: Chapter 6 - Coreutils:
 Added coreutils-5.0-hostname-2.patch, which suppresses the build of the
 hostname binary, and also suppresses it's check.</para></listitem>

+ 6 - 0
chapter04/chapter04.xml

@@ -249,6 +249,12 @@ GCC No Fixincludes Patch:
 GCC Specs Patch:
 <ulink url="&http;/gcc-3.3.1-specs-1.patch"/>
 
+GCC-2 Patch:
+<ulink url="&http;/gcc-2.95.3-2.patch"/>
+
+GCC-2 Return-type Patch:
+<ulink url="&http;/gcc-2.95.3-returntype-fix.patch"/>
+
 Glibc Sscanf Patch:
 <ulink url="&http;/glibc-2.3.2-sscanf-1.patch"/>
 

+ 2 - 7
chapter06/gcc-2953-inst.xml

@@ -10,20 +10,15 @@ default optimizations, such as CFLAGS and CXXFLAGS, we recommend unsetting
 or modifying them when building GCC.</para>
 
 <para><screen><userinput>patch -Np1 -i ../gcc-2.95.3-2.patch
+patch -Np1 -i ../gcc-2.95.3-returntype-fix.patch
 echo timestamp > gcc/cstamp-h.in
 mkdir ../gcc-2-build
 cd ../gcc-2-build
 ../gcc-2.95.3/configure --prefix=/opt/gcc-2.95.3 \
-&nbsp;&nbsp;&nbsp;&nbsp;--enable-shared --enable-languages=c,c++ \
+&nbsp;&nbsp;&nbsp;&nbsp;--enable-shared --enable-languages=c \
 &nbsp;&nbsp;&nbsp;&nbsp;--enable-threads=posix
 make bootstrap
 make install</userinput></screen></para>
 
-<para>Add the compiler's library directory to <filename>ld.so.conf</filename>,
-so these libraries can be found at run time:</para>
-
-<para><screen><userinput>echo "/opt/gcc-2.95.3/lib" >> /etc/ld.so.conf
-ldconfig</userinput></screen></para>
-
 </sect2>