summaryrefslogtreecommitdiffstats
path: root/temporary-bootstrap-builder-setup.txt
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-01-06 02:14:45 (EST)
committer P. J. McDermott <pjm@nac.net>2012-01-06 02:14:45 (EST)
commitead6b727eb6d2a14cc063be307bc3c5f906d1ec9 (patch)
treea93218d773bb7374e5c5802b4943d3fcb64133c5 /temporary-bootstrap-builder-setup.txt
parentc5074348b3101c3ab81d8076ff297ad876951685 (diff)
Add notes to build the final cross-compiling GCC.
Diffstat (limited to 'temporary-bootstrap-builder-setup.txt')
-rw-r--r--temporary-bootstrap-builder-setup.txt16
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