%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 --enable-cloog-backend=isl --with-system-zlib \ --with-native-system-header-dir=/tools/include --disable-libssp \ --disable-install-libiberty --disable-cloog-version-check \ --enable-checking=release --enable-libstdcxx-time The meaning of the new configure options: --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\|CLOOG\)\(LIBS\|INC\)/s:-[IL]/\(lib\|include\)::" \ 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>