| 123456789101112131415161718192021222324252627282930313233343536 | <sect2><title> </title><para> </para></sect2><sect2><title>Installation of GCC</title><para>This package is known to behave badly when you have changed itsdefault optimization flags (including the -march and -mcpu options).Therefore, if you have defined any environment variables that overridedefault optimizations, such as CFLAGS and CXXFLAGS, we recommend unsettingor modifying them when building GCC.</para><para>This is an older release of GCC which we are going to install for thepurpose of compiling the Linux kernel in Chapter 8. This version is recommendedby the kernel developers when you need absolute stability. Later versions ofGCC have not received as much testing for Linux kernel compilation. Using alater version is likely to work, however, we recommend adhering to the kerneldeveloper's advice and using the version here to compile your kernel.</para><para>We'll install this older release of GCC into the non-standard prefix of<filename class="directory">/opt</filename> so as to avoid interfering withthe system GCC already installed in <filename class="directory">/usr</filename> .</para><para><screen><userinput>patch -Np1 -i ../gcc-2.95.3-2.patchpatch -Np1 -i ../gcc-2.95.3-returntype-fix.patchecho timestamp > gcc/cstamp-h.inmkdir ../gcc-2-buildcd ../gcc-2-build../gcc-2.95.3/configure --prefix=/opt/gcc-2.95.3 \    --enable-shared --enable-languages=c \    --enable-threads=posixmake bootstrapmake install</userinput></screen></para></sect2>
 |