buildtools/legacy/compile-gcc

17 lines
379 B
Plaintext
Raw Normal View History

#!/bin/bash
if [ -z $GCCDATE ]; then
echo "need to set GCCDATE environment variable!"
exit 1
fi
export BELIBRARIES=/boot/common/lib:/boot/system/develop/lib
mkdir -p gcc-obj
cd gcc-obj
CFLAGS="-O2" CXXFLAGS="-O2" ../gcc/configure \
--prefix=/boot/common/develop/tools/gcc-2.95.3-${GCCDATE} \
--disable-nls --enable-shared=yes --enable-languages=c,c++
make bootstrap
cd ..