2009-08-17 18:21:12 +00:00
|
|
|
How to build gcc-4.3 natively on Haiku:
|
|
|
|
|
|
|
|
checkout the buildtools from the haiku repository
|
|
|
|
cd into the buildtools folder (where this file lives)
|
|
|
|
|
2010-04-22 19:08:08 +00:00
|
|
|
declare the current gcc-version-date like this:
|
|
|
|
export GCCDATE=100421
|
|
|
|
(just use the current date instead of '100421')
|
|
|
|
|
2009-08-17 18:21:12 +00:00
|
|
|
compile binutils:
|
|
|
|
|
|
|
|
mkdir binutils-obj
|
|
|
|
cd binutils-obj
|
2010-04-22 19:08:08 +00:00
|
|
|
CFLAGS="-O2" CXXFLAGS="-O2" ../binutils/configure \
|
|
|
|
--prefix=/boot/develop/abi/x86/gcc4/tools/gcc-4.3.3-haiku-${GCCDATE} \
|
|
|
|
--disable-nls --enable-shared=yes
|
|
|
|
make -j2
|
2009-08-17 18:21:12 +00:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
compile gcc:
|
|
|
|
|
|
|
|
mkdir gcc-obj
|
|
|
|
cd gcc-obj
|
|
|
|
CFLAGS="-O2" CXXFLAGS="-O2" ../gcc/configure \
|
2010-04-22 19:08:08 +00:00
|
|
|
--prefix=/boot/develop/abi/x86/gcc4/tools/gcc-4.3.3-haiku-${GCCDATE} \
|
2009-08-17 18:21:12 +00:00
|
|
|
--enable-shared --enable-languages=c,c++ \
|
|
|
|
--disable-nls --without-libiconv-prefix --disable-libstdcxx-pch
|
2010-04-22 19:08:08 +00:00
|
|
|
make -j2 bootstrap
|
2009-08-17 18:21:12 +00:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
Ok, now everything is compiled and ready, waiting to be installed:
|
|
|
|
|
2010-04-22 19:08:08 +00:00
|
|
|
mkdir /boot/develop/abi/x86/gcc4/tools/gcc-4.3.3-haiku-${GCCDATE}
|
2009-08-17 18:21:12 +00:00
|
|
|
cd binutils-obj
|
|
|
|
make install
|
|
|
|
cd ..
|
|
|
|
cd gcc-obj
|
|
|
|
make install
|
|
|
|
cd ..
|
2010-07-11 16:13:49 +00:00
|
|
|
ln -sfn gcc-4.3.3-haiku-${GCCDATE} /boot/develop/abi/x86/gcc4/tools/current
|
2009-08-17 18:21:12 +00:00
|
|
|
|
|
|
|
Please send questions & bug-reports to: Oliver Tappe <gcc@hirschkaefer.de>
|