%general-entities; ]> Cross GCC-&version; - Final GCC cross tools, final Installation of GCC Cross Compiler Finally, disable in configure, so it doesn't pick up the host's header files: cp -v configure{,.orig} sed -e '/FLAGS_FOR_TARGET.*\/lib\//s@-B[^ ]*/lib/@@g' configure.orig > \ configure ../gcc-&gcc-version;/configure --prefix=/cross-tools \ --target=${CLFS_TARGET} --host=${CLFS_HOST} --disable-multilib \ --with-local-prefix=/tools --disable-nls --enable-shared \ --enable-languages=c,c++ --enable-__cxa_atexit \ --enable-c99 --enable-long-long --enable-threads=posix The meaning of the new configure options: --enable-languages=c,c++ This option ensures that only the C and C++ compilers are built. --enable-__cxa_atexit This option allows use of __cxa_atexit, rather than atexit, to register C++ destructors for local statics and global objects and is essential for fully standards-compliant handling of destructors. It also affects the C++ ABI and therefore results in C++ shared libraries and C++ programs that are interoperable with other Linux distributions. --enable-c99 Enable C99 support for C programs. --enable-long-long Enables long long support in the compiler. --enable-threads=posix This enables C++ exception handling for multi-threaded code. Continue with compiling the package: make AS_FOR_TARGET="${CLFS_TARGET}-as" \ LD_FOR_TARGET="${CLFS_TARGET}-ld" Install the package: make install <para>Details on this package are located in <xref linkend="contents-gcc" role="."/></para> </sect2> </sect1>