1How to build gcc-2.95.3 for Haiku: 2 3cd into the buildtools/legacy folder 4 5declare the current gcc-version-date like this: 6 export GCCDATE=100818 7(just use the current date instead of '100818', ie. 'yymmdd') 8If your GCC version includes new features, make sure you also alter the 9version in gcc/gcc/version.c. 10 11compile binutils: 12 13 mkdir binutils-obj 14 cd binutils-obj 15 LC_ALL=POSIX CFLAGS="-O2" CXXFLAGS="-O2" ../binutils/configure \ 16 --prefix=/boot/common/develop/tools/gcc-2.95.3-${GCCDATE} \ 17 --disable-nls --enable-shared=yes 18 LC_ALL=POSIX make 19 cd .. 20 21 22compile gcc: 23 24 mkdir gcc-obj 25 cd gcc-obj 26 LC_ALL=POSIX CFLAGS="-O2" CXXFLAGS="-O2" ../gcc/configure \ 27 --prefix=/boot/common/develop/tools/gcc-2.95.3-${GCCDATE} \ 28 --disable-nls --enable-shared=yes --enable-languages=c,c++ 29 LC_ALL=POSIX make bootstrap 30 # the above will fail when compiling builtinbuf.cc, but we can ignore that 31 # since it's trying to build libstdc++.so, which haiku provides anyway 32 cd .. 33 34Ok, now everything is compiled and ready, waiting to be packaged: 35 36 mkdir /boot/develop/abi/x86/gcc2/tools/gcc-2.95.3-haiku-${GCCDATE} 37 cd binutils-obj 38 make install 39 cd .. 40 cd gcc-obj 41 make install 42 cd .. 43 ln -sfn gcc-2.95.3-haiku-${GCCDATE} /boot/develop/abi/x86/gcc2/tools/current 44 45To build the binutils HTML documentation (needed by the GCC2 package build 46script): 47 48 cd binutils-obj 49 make install-html 50 cd .. 51 52Please send questions & bug-reports to: Oliver Tappe <gcc@hirschkaefer.de> 53