buildtools/INSTALL-from-source-BeOS
Oliver Tappe cb67fd0162 - added --disable-nls to the configure calls which seems to make the build
depend on less tools.
- culled gettext, libdl and libiconv from the tool-list Axel had just added.
  Only autoconf and automake should be needed now
  [Axel: I have checked this just now on my machine, but please correct me
   if I'm still wrong!]


git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@11254 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-04 23:24:32 +00:00

44 lines
1.1 KiB
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 --disable-nls --enable-shared=yes
make
cd ..
compile gcc:
mkdir gcc-obj
cd gcc-obj
CFLAGS="-O2" CXXFLAGS="-O2" ../gcc/configure --prefix=/boot/develop/tools/gnupro --disable-nls --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.
For the installation, you'll need the following tools/libraries to be installed:
autoconf
automake
You'll find these in the GNU packages on BeBits (http://www.bebits.com/app/2971).
So have fun!
Please send questions & bug-reports to: Oliver Tappe <gcc@hirschkaefer.de>