Installation of GCC
patch -Np1 -i ../gcc-&gcc-version;-specs.patch
patch -Np1 -i ../gcc-&gcc-version;-mmap_test.patch
patch -Np1 -i ../gcc-&gcc-version;-no_fixedincludes.patch
patch -Np1 -i ../gcc-&gcc-version;-libstdc++_no_debug.patch
patch -Np1 -i ../gcc-&gcc-version;-libgcc_no_debug.patch
mkdir ../gcc-build
cd ../gcc-build
CFLAGS="-O2 -pipe" CXXFLAGS="-O2 -pipe" \
../gcc-&gcc-version;/configure --prefix=/stage1 \
--with-local-prefix=/stage1 \
--enable-languages=c,c++ --enable-shared \
--enable-threads=posix --enable-__cxa_atexit \
--enable-version-specific-runtime-libs
make BOOT_LDFLAGS="-s" BOOT_CFLAGS="-O2 -pipe" \
STAGE1_CFLAGS="-pipe" bootstrap
make -k check
make install