1How to build gcc-4.5 natively on Haiku: 2 3checkout the buildtools from the haiku repository 4cd into the buildtools folder (where this file lives) 5 6declare the current gcc-version-date like this: 7 export GCCDATE=110631 8 export GCCVERSION=gcc-4.5.3-haiku-${GCCDATE} 9(just use the current date instead of '110631' and the current gcc version 10instead of '4.5.3') 11 12compile binutils: 13 14 mkdir binutils-obj 15 cd binutils-obj 16 LC_ALL=POSIX CFLAGS="-O2" CXXFLAGS="-O2" ../binutils/configure \ 17 --prefix=/boot/develop/abi/x86/gcc4/tools/${GCCVERSION} \ 18 --disable-nls --enable-shared=yes \ 19 --with-htmldir=html-docs 20 LC_ALL=POSIX make -j2 21 cd .. 22 23compile gcc: 24 25 mkdir gcc-obj 26 cd gcc-obj 27 LC_ALL=POSIX CFLAGS="-O2" CXXFLAGS="-O2" ../gcc/configure \ 28 --prefix=/boot/develop/abi/x86/gcc4/tools/${GCCVERSION} \ 29 --enable-shared --enable-languages=c,c++ \ 30 --disable-nls --without-libiconv-prefix --disable-libstdcxx-pch \ 31 --with-htmldir=html-docs 32 LC_ALL=POSIX make -j2 bootstrap 33 cd .. 34 35Ok, now everything is compiled and ready, waiting to be installed: 36 37 mkdir /boot/develop/abi/x86/gcc4/tools/${GCCVERSION} 38 cd binutils-obj 39 make install install-html 40 cd ../gcc-obj 41 make install install-html 42 ln -sfn ${GCCVERSION} /boot/develop/abi/x86/gcc4/tools/current 43 44Please send questions & bug-reports to: Oliver Tappe <gcc@hirschkaefer.de> 45