%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/sysroot \ --disable-nls \ --enable-languages=c \ --enable-c99 \ --enable-long-long \ --with-mpfr=${CLFS}/cross-tools \ --with-gmp=${CLFS}/cross-tools \ --with-mpc=${CLFS}/cross-tools \ --disable-multilib 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 Some programs need libgcc_s.so.1 to be included in the target file system. Copy it to the ${CLFS}/lib directory: cp -v ${CLFS}/cross-tools/${CLFS_TARGET}/lib/libgcc_s.so.1 ${CLFS}/lib Contents of GCC Installed programs Installed libraries cc (link to gcc), gcc, gccbug, and gcov libgcc.a, libgcc_eh.a, libgcc_s.so, libmudflap.[a,so], and libmudflapth.[a,so] Short Descriptions cc The C compiler cc gcc The C compiler gcc gccbug A shell script used to help create useful bug reports gccbug 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* libmudflap The libmudflap libraries are used by GCC for instrumenting pointer and array dereferencing operations. libmudflap*