From bf5ea232b5dea76e6ef6aca25a09e8117adf8ce4 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Mon, 17 Aug 2009 18:21:12 +0000 Subject: [PATCH] * added new readme that describes the current way of building gcc4 on haiku git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@32476 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- INSTALL-gcc4-from-source-Haiku | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/INSTALL-gcc4-from-source-Haiku b/INSTALL-gcc4-from-source-Haiku new file mode 100644 index 0000000..c67342b 100644 --- /dev/null +++ b/INSTALL-gcc4-from-source-Haiku @@ -1,0 +1,39 @@ +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) + +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 \ + --enable-shared --enable-languages=c,c++ \ + --disable-nls --without-libiconv-prefix --disable-libstdcxx-pch + make bootstrap + cd .. + +Ok, now everything is compiled and ready, waiting to be installed: + + mv /boot/develop/abi/current/tools/gcc-4.3.3-haiku-xxxxxx \ + /boot/develop/abi/current/tools/gcc-4.3.3-haiku-xxxxxx_orig + mkdir /boot/develop/abi/current/tools/gcc-4.3.3-haiku-090629 + ln -sfn /boot/develop/abi/current/tools/gcc-4.3.3-haiku-090629 \ + /boot/develop/abi/current/tools/current + cd binutils-obj + make install + cd .. + cd gcc-obj + make install + cd .. + +Please send questions & bug-reports to: Oliver Tappe -- gitore 0.2.2