%general-entities; %patches-entities; ]> GCC-&gcc-version; GCC temporary system <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../final-system/common/gcc.xml" xpointer="xpointer(//*[@role='package']/para[1])"/> <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem> <seg>Not checked yet</seg> <seg>Not checked yet</seg> </seglistitem> </segmentedlist> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../final-system/common/gcc.xml" xpointer="xpointer(//*[@role='package']/segmentedlist[2])"/> </sect2> <sect2 role="installation"> <title>Installation of GCC When searching for the multilibs, force the build to use the results of from our cross-compiler, not the native compiler gcc builds now. cp gcc/Makefile.in{,.orig2} sed -e "/MULTILIBS/s@\$(GCC_FOR_TARGET)@/cross-tools/bin/${CC}@g" \ gcc/Makefile.in.orig2 > gcc/Makefile.in CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" \ ../gcc-&gcc-version;/configure --prefix=/tools --libdir=/tools/lib64 \ --build=${LFS_HOST} --host=${LFS_TARGET} --target=${LFS_TARGET} \ --libexecdir=/tools/lib64 --with-local-prefix=/tools --enable-long-long \ --enable-c99 --enable-shared --enable-threads=posix --enable-__cxa_atexit \ --disable-nls --enable-languages=c,c++ --disable-libstdcxx-pch The meaning of the new configure options: CXX="${CXX} ${BUILD64}" This do ... --libexecdir=/tools/lib64 This do ... Compile the package: make AS_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-as" \ LD_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-ld" Install the package: make install ln -s gcc /tools/bin/cc <para>Details on this package are located in <xref linkend="contents-gcc" role="."/></para> </sect2> </sect1>