%general-entities; ]> GCC-&gcc-version; - Cross Compiler Final GCC cross tools, final Installation of GCC Cross Compiler GCC requires the GMP, MPFR, and MPC packages to either be present on the host or to be present in source form within the gcc source tree. Unpack these into the GCC directory after unpacking GCC: tar xf ../mpfr-&mpfr-version;.tar.bz2 mv -v mpfr-&mpfr-version; mpfr tar xf ../gmp-&gmp-version;.tar.bz2 mv -v gmp-&gmp-version; gmp tar xf ../mpc-&mpc-version;.tar.gz mv -v mpc-&mpc-version; mpc If you would like to build a C++ compiler in addition to the C compiler, change the following --enable-languages=c option to be --enable-languages=c,c++ instead. A C++ compiler is not required for any of the software included in this book. ../gcc-&gcc-version;/configure \ --prefix=${CLFS}/cross-tools \ --build=${CLFS_HOST} \ --target=${CLFS_TARGET} \ --host=${CLFS_HOST} \ --with-sysroot=${CLFS}/cross-tools/${CLFS_TARGET} \ --disable-nls \ --enable-languages=c \ --enable-c99 \ --enable-long-long \ --disable-libmudflap \ --with-mpfr=${CLFS}/cross-tools \ --with-gmp=${CLFS}/cross-tools \ --with-mpc=${CLFS}/cross-tools \ --disable-multilib \ --with-mpfr-include=$(pwd)/../gcc-&gcc-version;/mpfr/src \ --with-mpfr-lib=$(pwd)/mpfr/src/.libs The meaning of the configure options not used previously: --enable-c99 Enable C99 support for C programs. --enable-long-long Enables long long support in the compiler. make make install Contents of GCC Installed programs Installed libraries gcc, and gcov libgcc.a, libgcc_eh.a, and libgcc_s.so Short Descriptions gcc The C compiler gcc gcov A coverage testing tool; it is used to analyze programs to determine where optimizations will have the most effect gcov libgcc Contains run-time support for gcc libgcc*