From ead6b727eb6d2a14cc063be307bc3c5f906d1ec9 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 06 Jan 2012 02:14:45 -0500 Subject: Add notes to build the final cross-compiling GCC. --- (limited to 'temporary-bootstrap-builder-setup.txt') diff --git a/temporary-bootstrap-builder-setup.txt b/temporary-bootstrap-builder-setup.txt index 592500a..ca846fe 100644 --- a/temporary-bootstrap-builder-setup.txt +++ b/temporary-bootstrap-builder-setup.txt @@ -221,7 +221,7 @@ Configure and build a cross-compiling GNU Binutils. $ cd .. $ rm -Rf binutils-2.22 binutils-build -Configure and build a cross-compiling GCC. +Configure and build a cross-compiling GCC with a static libgcc and no threads. $ cp -pR ${BBL}/../../src/gcc-4.6.2 . $ mkdir -v gcc-build $ cd gcc-build @@ -316,3 +316,17 @@ Configure the dynamic loader to search for libraries in /usr/local/lib and > /usr/local/lib > /opt/lib > EOF + +Configure and build a final cross-compiling GCC. + $ cp -pR ${BBL}/../../src/gcc-4.6.2 . + $ mkdir -v 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 --enable-shared --enable-languages=c,c++ \ + > --enable-__cxa_atexit --with-mpfr=${BBL}/cross-tools \ + > --with-gmp=${BBL}/cross-tools --with-mpc=${BBL}/cross-tools --without-ppl \ + > --without-cloog --enable-c99 --enable-long-long --enable-threads=posix + $ make AS_FOR_TARGET="${BBL_TARGET}-as" LD_FOR_TARGET="${BBL_TARGET}-ld" + $ make install -- cgit v0.9.1