From 5a6287b43e050e8cfd7719f494a2fe68538bc366 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 04 Jan 2012 22:44:36 -0500 Subject: Add cross-compiling GCC instructions to TBB setup. --- (limited to 'temporary-bootstrap-builder-setup.txt') 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 -- cgit v0.9.1