⛏️ index : buildtools.git

author Oliver Tappe <zooey@hirschkaefer.de> 2009-08-17 18:21:12.0 +00:00:00
committer Oliver Tappe <zooey@hirschkaefer.de> 2009-08-17 18:21:12.0 +00:00:00
commit
bf5ea232b5dea76e6ef6aca25a09e8117adf8ce4 [patch]
tree
0c537d643221b3c240a9017fc60b290a68d4f04c
parent
a1532d36218dc75b9e5fecf6a1565aa802d062d5
download
bf5ea232b5dea76e6ef6aca25a09e8117adf8ce4.tar.gz

* 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

Diff

 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 <gcc@hirschkaefer.de>