buildtools/legacy/compile-gcc
Oliver Tappe cb66866b95 * drop 'packages/contents' from base paths again (we are back to
using /boot/system, /boot/common and /boot/home/config
  as packagefs mount-points)

git-svn-id: file:///srv/svn/repos/haiku/buildtools/branches/package-management@40804 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-17 17:02:44 +02:00

17 lines
379 B
Bash
Executable File

#!/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 ..