summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-01-04 22:44:36 (EST)
committer P. J. McDermott <pjm@nac.net>2012-01-04 22:44:36 (EST)
commit5a6287b43e050e8cfd7719f494a2fe68538bc366 (patch)
tree97b8393337195833e221daf6ab0b7e74e6d62bcd
parentcfb7ba82251faeacedb151df2ac37667d8ab0487 (diff)
Add cross-compiling GCC instructions to TBB setup.
-rw-r--r--temporary-bootstrap-builder-setup.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/temporary-bootstrap-builder-setup.txt b/temporary-bootstrap-builder-setup.txt
index e5009ac..77244dc 100644
--- a/temporary-bootstrap-builder-setup.txt
+++ b/temporary-bootstrap-builder-setup.txt
@@ -188,3 +188,20 @@ Configure and build a cross-compiling GNU Binutils.
$ cp -v ../binutils-2.22/include/libiberty.h ${BBL}/usr/include
$ cd ..
$ rm -Rf binutils-2.22 binutils-build
+
+Configure and build a cross-compiling GCC.
+ $ cp -pR ${BBL}/../../src/gcc-4.6.2 .
+ $ mkdir gcc-build
+ $ cd gcc-build
+ $ AR=ar LDFLAGS="-Wl,-rpath,${BBL}/cross-tools/lib" ../gcc-4.6.2/configure \
+ > --prefix=${BBL}/cross-tools --build=${BBL_HOST} --host=${BBL_HOST} \
+ > --target=${BBL_TARGET} --disable-multilib --with-sysroot=${BBL} \
+ > --disable-nls --without-headers --with-newlib --disable-decimal-float \
+ > --disable-libgomp --disable-libmudflap --disable-libssp \
+ > --with-mpfr=${BBL}/cross-tools --with-gmp=${BBL}/cross-tools \
+ > --with-mpc=${BBL}/cross-tools --without-ppl --without-cloog \
+ > --disable-shared --disable-threads --enable-languages=c
+ $ make all-gcc all-target-libgcc
+ $ make install-gcc install-target-libgcc
+ $ cd ..
+ $ rm -Rf gcc-4.6.2