%general-entities; ]> Cross GCC-&gcc-version; - Static GCC cross tools, static Installation of Cross GCC Compiler with Static libgcc and no Threads The following patch ensures that gcc does not search the /usr directory for libgcc_s.so when cross-compiling: patch -Np1 -i ../&gcc-cross_search-patch; ../gcc-&gcc-version;/configure --prefix=${LFS}/cross-tools \ --host=${LFS_HOST} --target=${LFS_TARGET} --disable-multilib \ --with-sysroot=${LFS} --disable-nls --disable-shared \ --enable-languages=c The meaning of the configure options: --disable-shared Disables the creation of the shared libraries. --disable-threads This will prevent GCC from looking for the multi-thread include files, since they haven't been created for this architecture yet. GCC will be able to find the multi-thread information after the Glibc headers are created. --enable-languages=c This option ensures that only the C compiler is built. Continue with compiling the package: make all-gcc Install the package: make install-gcc <para>Details on this package are located in <xref linkend="contents-gcc" role="."/></para> </sect2> </sect1>