mirror of
https://review.haiku-os.org/buildtools
synced 2025-01-19 04:48:37 +01:00
cb4b88a1cd
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@37471 a95241bf-73f2-0310-859d-f6bbb57e9c96
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
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)
|
|
|
|
declare the current gcc-version-date like this:
|
|
export GCCDATE=100421
|
|
(just use the current date instead of '100421')
|
|
|
|
compile binutils:
|
|
|
|
mkdir binutils-obj
|
|
cd binutils-obj
|
|
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
|
|
cd ..
|
|
|
|
compile gcc:
|
|
|
|
mkdir gcc-obj
|
|
cd gcc-obj
|
|
CFLAGS="-O2" CXXFLAGS="-O2" ../gcc/configure \
|
|
--prefix=/boot/develop/abi/x86/gcc4/tools/gcc-4.3.3-haiku-${GCCDATE} \
|
|
--enable-shared --enable-languages=c,c++ \
|
|
--disable-nls --without-libiconv-prefix --disable-libstdcxx-pch
|
|
make -j2 bootstrap
|
|
cd ..
|
|
|
|
Ok, now everything is compiled and ready, waiting to be installed:
|
|
|
|
mkdir /boot/develop/abi/x86/gcc4/tools/gcc-4.3.3-haiku-${GCCDATE}
|
|
cd binutils-obj
|
|
make install
|
|
cd ..
|
|
cd gcc-obj
|
|
make install
|
|
cd ..
|
|
ln -sfn gcc-4.3.3-haiku-${GCCDATE} /boot/develop/abi/x86/gcc4/tools/current
|
|
|
|
Please send questions & bug-reports to: Oliver Tappe <gcc@hirschkaefer.de>
|