1. Some lib required by GCC
Gmp:a Free Library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating-point Numbers.
Mpfr:multiple Precision floating-point Reliable Library.
Mpc:a C Library for the arithmetic of complex numbers with arbitrarily high precision and correct rounding of the ResU Lt.
2.GMP/MPFR/MPC Source code directories are placed in the GCC directory as their subdirectories exist, removing the directory version number
3. The LFS documentation says you need to modify the next GCC source code, not very able to understand what is done, probably the default use of the GCC some of the directories such as LIB, such as modified to Sources/lib(?).
4. Create a GCC link to gcc-ver.ver.ver without a version number to facilitate execution of the script that modifies the GCC source code
5. Under the GCC directory, execute the script above.
Note: The above scipt is executed under the GCC directory! If the execution succeeds there will be a series of file renaming prompts.
Coarse look script in the Sources/gcc/config directory to find things, but in fact, GCC source code directory has a gcc/config directory (sources/gcc-v.v.v/gcc/config), so step4 is not required.
6 ... /configure \
--target= $LFS _tgt \
--prefix=/tools \
--with-glibc-version=2.11 \
--with-sysroot= $LFS \
--with-newlib--without-headers \
--with-local-prefix=/tools \
--with-native-system-header-dir=/tools/include \
--DISABLE-NLS \
--disable-shared \
--disable-multilib \
--disable-decimal-float \
--disable-threads \
--disable-libatomic \
--disable-libgomp \
--disable-libquadmath \
--DISABLE-LIBSSP \
--DISABLE-LIBVTV \
--DISABLE-LIBSTDCXX \
--enable-languages=c,c++
Linux from Scratch [2]