⛏️ index : buildtools.git

author Oliver Tappe <zooey@hirschkaefer.de> 2010-04-20 16:29:16.0 +00:00:00
committer Oliver Tappe <zooey@hirschkaefer.de> 2010-04-20 16:29:16.0 +00:00:00
commit
ff7b7cd5e5b49a31ee6009e3218df3215b42e98d [patch]
tree
19901384aa147b3dd26a4780709acb9f9aff773c
parent
1e7dbaf7329bbca89a5cd09200c68db5a320b39c
download
ff7b7cd5e5b49a31ee6009e3218df3215b42e98d.tar.gz

* added new file with compilation instructions for gcc2 on haiku * removed installation instructions for BeOS


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@36377 a95241bf-73f2-0310-859d-f6bbb57e9c96

Diff

 INSTALL-from-source-BeOS       | 43 -------------------------------------------
 INSTALL-gcc2-from-source-Haiku | 40 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+), 43 deletions(-)

diff --git a/INSTALL-from-source-BeOS b/INSTALL-from-source-BeOS
deleted file mode 100644
index e460b91..0000000 100644
--- a/INSTALL-from-source-BeOS
+++ /dev/null
@@ -1,43 +1,0 @@
How to build gcc-2.95.3 for BeOS:

cd into the buildtools/legacy 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>
diff --git a/INSTALL-gcc2-from-source-Haiku b/INSTALL-gcc2-from-source-Haiku
new file mode 100644
index 0000000..c55c363 100644
--- /dev/null
+++ b/INSTALL-gcc2-from-source-Haiku
@@ -1,0 +1,40 @@
How to build gcc-2.95.3 for BeOS:

cd into the buildtools/legacy folder

declare the current gcc-version-date like this:
	export GCCDATE=100420
(just use the current date instead of '100420')

compile binutils:

	mkdir binutils-obj
	cd binutils-obj
	CFLAGS="-O2" CXXFLAGS="-O2" ../binutils/configure --prefix=/boot/develop/abi/x86/gcc2/tools/gcc-2.95.3-haiku-${GCCDATE} --disable-nls --enable-shared=yes
	make
	cd ..


compile gcc:

	mkdir gcc-obj
	cd gcc-obj
	CFLAGS="-O2" CXXFLAGS="-O2" ../gcc/configure --prefix=/boot/develop/abi/x86/gcc2/tools/gcc-2.95.3-haiku-${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 installed:

	mkdir /boot/develop/abi/x86/gcc2/tools/gcc-2.95.3-haiku-${GCCDATE}
	ln -sfn gcc-2.95.3-haiku-${GCCDATE} \
		/boot/develop/abi/x86/gcc2/tools/current
	cd binutils-obj
	make install
	cd ..
	cd gcc-obj
	make install
	cd ..

Please send questions & bug-reports to: Oliver Tappe <gcc@hirschkaefer.de>