%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 --disable-multilib \ --enable-languages=c,c++ --with-system-zlib \ --with-native-system-header-dir=/tools/include \ --disable-libssp --enable-install-libiberty \ --disable-bootstrap 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 <para>Details on this package are located in <xref linkend="contents-gcc" role="."/></para> </sect2> </sect1>