diff options
-rw-r--r-- | temporary-bootstrap-builder-setup.txt | 16 |
1 files changed, 15 insertions, 1 deletions
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 |