%general-entities; ]> GCC-&gcc-version; - Cross Compiler Final GCC cross tools, final Installation of GCC Cross Compiler 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 in for any of the software included in this book. AR=ar LDFLAGS="-Wl,-rpath,${CLFS}/cross-tools/lib" \ ../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \ --build=${CLFS_HOST} --target=${CLFS_TARGET} --host=${CLFS_HOST} \ --with-sysroot=${CLFS} --disable-nls --enable-shared \ --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-shared Enables the creation of the shared libraries. --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*