%general-entities; ]> GCC-&gcc-version; GCC temporary system Installation of GCC cp -v gcc/Makefile.in{,.orig} sed 's@\./fixinc\.sh@-c true@' gcc/Makefile.in.orig > gcc/Makefile.in Before starting to build GCC, remember to unset any environment variables that override the default optimization flags. ../gcc-&gcc-version;/configure --prefix=/tools \ --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} \ --with-local-prefix=/tools --enable-long-long --enable-c99 --enable-shared \ --enable-threads=posix --disable-multilib --disable-nls \ --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch \ --with-system-zlib --with-native-system-header-dir=/tools/include \ --disable-libssp --enable-checking=release --enable-libstdcxx-time The meaning of the new configure option: --disable-libstdcxx-pch Do not build the pre-compiled header (PCH) for libstdc++. It takes up a lot of space, and we have no use for it. The following will prevent GCC from looking in the wrong directories for headers and libraries: cp -v Makefile{,.orig} sed "/^HOST_\(GMP\|ISL\|CLOOG\)\(LIBS\|INC\)/s:/tools:/cross-tools:g" \ Makefile.orig > Makefile Compile the package: make AS_FOR_TARGET="${AS}" \ LD_FOR_TARGET="${LD}" Install the package: make install cp -v ../gcc-&gcc-version;/include/libiberty.h /tools/include <para>Details on this package are located in <xref linkend="contents-gcc" role="."/></para> </sect2> </sect1>