mirror of
https://review.haiku-os.org/buildtools
synced 2025-01-18 20:38:39 +01:00
cb66866b95
using /boot/system, /boot/common and /boot/home/config as packagefs mount-points) git-svn-id: file:///srv/svn/repos/haiku/buildtools/branches/package-management@40804 a95241bf-73f2-0310-859d-f6bbb57e9c96
53 lines
1.4 KiB
Plaintext
53 lines
1.4 KiB
Plaintext
How to build gcc-2.95.3 for Haiku:
|
|
|
|
cd into the buildtools/legacy folder
|
|
|
|
declare the current gcc-version-date like this:
|
|
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.
|
|
|
|
compile binutils:
|
|
|
|
mkdir binutils-obj
|
|
cd binutils-obj
|
|
CFLAGS="-O2" CXXFLAGS="-O2" ../binutils/configure \
|
|
--prefix=/boot/common/develop/tools/gcc-2.95.3-${GCCDATE} \
|
|
--disable-nls --enable-shared=yes
|
|
make
|
|
cd ..
|
|
|
|
|
|
compile gcc:
|
|
|
|
mkdir gcc-obj
|
|
cd gcc-obj
|
|
CFLAGS="-O2" CXXFLAGS="-O2" ../gcc/configure \
|
|
--prefix=/boot/common/develop/tools/gcc-2.95.3-${GCCDATE} \
|
|
--disable-nls --enable-shared=yes --enable-languages=c,c++
|
|
make bootstrap
|
|
# 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 packaged:
|
|
|
|
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 ..
|
|
ln -sfn gcc-2.95.3-haiku-${GCCDATE} /boot/develop/abi/x86/gcc2/tools/current
|
|
|
|
To build the binutils HTML documentation (needed by the GCC2 package build
|
|
script):
|
|
|
|
cd binutils-obj
|
|
make install-html
|
|
cd ..
|
|
|
|
Please send questions & bug-reports to: Oliver Tappe <gcc@hirschkaefer.de>
|