%general-entities; ]> GCC-&gcc-version; GCC temporary system Installation of GCC 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} \ --libexecdir=/tools/lib --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-gmp=/tools --with-mpfr=/tools \ --with-mpc=/tools --with-isl=/tools --disable-isl-version-check \ --with-cloog=/tools --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 <para>Details on this package are located in <xref linkend="contents-gcc" role="."/></para> </sect2> </sect1>