summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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