Installation of GCC
GCC is installed by running the following commands:
mkdir $LFS/usr/src/gcc-build &&
cd $LFS/usr/src/gcc-build &&
../gcc-2.95.2.1/configure --prefix=/usr \
--with-gxx-include-dir=/usr/include/g++
\
--enable-languages=c,c++ --disable-nls
&&
make -e LDFLAGS=-static bootstrap &&
make prefix=$LFS/usr local_prefix=$LFS/usr/local
\
gxx_include_dir=$LFS/usr/include/g++
install &&
cd $LFS/lib &&
ln -s ../usr/bin/cpp
&&
cd $LFS/usr/lib &&
ln -s ../bin/cpp
&&
cd $LFS/usr/bin &&
ln -s gcc cc