Installation of GCC
Install GCC by running the following commands:
patch -Np1 -i ../gcc-&gcc-patch-version;.patch &&
mkdir ../gcc-build &&
cd ../gcc-build &&
../gcc-&gcc-version;/configure --prefix=/usr \
--enable-languages=c,c++ --disable-nls \
--disable-shared &&
make BOOT_LDFLAGS=-static bootstrap &&
make prefix=$LFS/usr install &&
cd $LFS/lib &&
ln -sf ../usr/bin/cpp &&
cd $LFS/usr/lib &&
ln -sf ../bin/cpp &&
cd $LFS/usr/bin &&
ln -sf gcc cc