%general-entities; ]> GCC-&gcc2-version; Introduction to <application><acronym>GCC</acronym></application>-&gcc2-version; There are two reasons for installing GCC-&gcc2-version;. The first is that the kernel developers have certified GCC-&gcc2-version; as the preferred compiler for compiling the kernel. The other (and more compelling reason) is that some commercial closed-source packages (such as Netscape Navigator, Yahoo Pager) and precompiled packages (such as Mozilla) are linked against GCC-&gcc2-version; libs. Package information Download (HTTP): Download (FTP): Download size: &gcc2-size; Estimated Disk space required: &gcc2-buildsize; Estimated build time: &gcc2-time; Additional downloads Required Patch: Required Patch: Required Patch: Installation of <application><acronym>GCC</acronym></application> Apply the patches: patch -Np1 -i ../gcc-&gcc2-version;-2.patch && patch -Np1 -i ../gcc-&gcc2-version;-no_fixinc-1.patch && patch -Np1 -i ../gcc-&gcc2-version;-returntype_fix-1.patch The GCC development team recommends building in a separate directory. mkdir ../gcc-build && cd ../gcc-build Configure GCC to build the C and C++ compilers and enable the related C++ options. ../gcc-&gcc2-version;/configure \ --prefix=/opt/gcc-&gcc2-version; \ --enable-shared --enable-languages=c,c++ \ --enable-threads=posix Compile and install GCC: make bootstrap && make install Make note of the library that is installed. L=`find /opt/gcc-&gcc2-version;/lib -name "*libstdc++*.so" -type f` && IL=`basename $L` Move the C++ libraries to the standard lib directory to avoid having to add /opt/gcc-&gcc2-version;/lib to /etc/ld.so.conf. for i in /opt/gcc-&gcc2-version;/lib/*.so*; do mv -f $i /usr/lib; ln -sf /usr/lib/`basename $i` /opt/gcc-&gcc2-version;/lib; done Create symlinks required by commercial and precompiled packages. ln -sf $IL /usr/lib/libstdc++-libc6.1-1.so.2 && ln -sf $IL /usr/lib/libstdc++-libc6.2-2.so.3 && ln -sf $IL /usr/lib/libstdc++-libc6.3-2.so.3 Configuring <application><acronym>GCC</acronym></application> Configuration Information The instructions given above make compatibility symlinks that pre-compiled packages in BLFS require. You may create additional compatibility links based on your requirements. If you only need the GCC-&gcc2-version; libraries, you may delete /opt/gcc-&gcc2-version;. Whenever you need to use GCC-&gcc2-version; instead of your system installed compiler, add /opt/gcc-&gcc2-version;/bin to the front of your PATH or (preferably) set the CC environment variable before compiling the concerned package. Contents The GCC-&gcc2-version; package contains the gcc-&gcc2-version; C and C++ compilers and GCC-&gcc2-version; libstdc++.so that is required by some commercial and pre-compiled packages.