2010-04-20 18:29:16 +02:00
|
|
|
How to build gcc-2.95.3 for BeOS:
|
|
|
|
|
|
|
|
cd into the buildtools/legacy folder
|
|
|
|
|
|
|
|
declare the current gcc-version-date like this:
|
2010-08-25 15:11:30 +02:00
|
|
|
export GCCDATE=100818
|
|
|
|
(just use the current date instead of '100818', ie. 'yymmdd')
|
|
|
|
If your GCC version includes new features, make sure you also alter the
|
|
|
|
version in gcc/gcc/version.c.
|
2010-04-20 18:29:16 +02:00
|
|
|
|
|
|
|
compile binutils:
|
|
|
|
|
|
|
|
mkdir binutils-obj
|
|
|
|
cd binutils-obj
|
2012-11-07 20:31:39 +01:00
|
|
|
LC_ALL=POSIX CFLAGS="-O2" CXXFLAGS="-O2" ../binutils/configure \
|
2010-07-11 18:13:49 +02:00
|
|
|
--prefix=/boot/develop/abi/x86/gcc2/tools/gcc-2.95.3-haiku-${GCCDATE} \
|
|
|
|
--disable-nls --enable-shared=yes
|
2012-11-07 20:31:39 +01:00
|
|
|
LC_ALL=POSIX make
|
2010-04-20 18:29:16 +02:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
|
|
|
|
compile gcc:
|
|
|
|
|
|
|
|
mkdir gcc-obj
|
|
|
|
cd gcc-obj
|
2012-11-07 20:31:39 +01:00
|
|
|
LC_ALL=POSIX CFLAGS="-O2" CXXFLAGS="-O2" ../gcc/configure \
|
2010-07-11 18:13:49 +02:00
|
|
|
--prefix=/boot/develop/abi/x86/gcc2/tools/gcc-2.95.3-haiku-${GCCDATE} \
|
|
|
|
--disable-nls --enable-shared=yes --enable-languages=c,c++
|
2012-11-07 20:31:39 +01:00
|
|
|
LC_ALL=POSIX make bootstrap
|
2010-04-20 18:29:16 +02:00
|
|
|
# the above will fail when compiling builtinbuf.cc, but we can ignore that
|
|
|
|
# since it's trying to build libstdc++.so, which haiku provides anyway
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
Ok, now everything is compiled and ready, waiting to be installed:
|
|
|
|
|
|
|
|
mkdir /boot/develop/abi/x86/gcc2/tools/gcc-2.95.3-haiku-${GCCDATE}
|
|
|
|
cd binutils-obj
|
|
|
|
make install
|
|
|
|
cd ..
|
|
|
|
cd gcc-obj
|
|
|
|
make install
|
|
|
|
cd ..
|
2010-07-11 18:13:49 +02:00
|
|
|
ln -sfn gcc-2.95.3-haiku-${GCCDATE} /boot/develop/abi/x86/gcc2/tools/current
|
2010-04-20 18:29:16 +02:00
|
|
|
|
2010-08-25 15:11:30 +02:00
|
|
|
To build the binutils HTML documentation (needed by the GCC2 package build
|
|
|
|
script):
|
|
|
|
|
|
|
|
cd binutils-obj
|
|
|
|
make install-html
|
|
|
|
cd ..
|
|
|
|
|
2010-04-20 18:29:16 +02:00
|
|
|
Please send questions & bug-reports to: Oliver Tappe <gcc@hirschkaefer.de>
|