mirror of
https://review.haiku-os.org/buildtools
synced 2025-01-19 12:51:22 +01:00
acd66be8cd
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9624 a95241bf-73f2-0310-859d-f6bbb57e9c96
38 lines
954 B
Plaintext
38 lines
954 B
Plaintext
How to build gcc-2.95.3 for BeOS:
|
|
|
|
cd into the buildtools folder (where this file lives)
|
|
|
|
compile binutils:
|
|
|
|
mkdir binutils-obj
|
|
cd binutils-obj
|
|
CFLAGS="-O2" CXXFLAGS="-O2" ../binutils/configure --prefix=/boot/develop/tools/gnupro --enable-shared=yes
|
|
make
|
|
cd ..
|
|
|
|
compile gcc:
|
|
|
|
mkdir gcc-obj
|
|
cd gcc-obj
|
|
CFLAGS="-O2" CXXFLAGS="-O2" ../gcc/configure --prefix=/boot/develop/tools/gnupro --enable-shared=yes --enable-languages=c,c++
|
|
make bootstrap
|
|
cd ..
|
|
|
|
Ok, now everything is compiled and ready, waiting to be installed:
|
|
|
|
mv /boot/develop/tools/gnupro /boot/develop/tools/gnupro_...
|
|
mkdir /boot/develop/tools/gcc-2.95.3_binutils-2.15
|
|
ln -s /boot/develop/tools/gcc-2.95.3_binutils-2.15 /boot/develop/tools/gnupro
|
|
cd binutils-obj
|
|
make install
|
|
cd ..
|
|
cd gcc-obj
|
|
make install
|
|
cd ..
|
|
|
|
That's it, gcc-2.95.3 and binutils-2.15 are now installed and active.
|
|
|
|
So have fun!
|
|
|
|
Please send questions & bug-reports to: Oliver Tappe <gcc@hirschkaefer.de>
|