diff options
author | P. J. McDermott <pjm@nac.net> | 2011-12-31 03:16:44 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2011-12-31 03:16:44 (EST) |
commit | 4a4037df1ce2c2e4b0ef8e0a155e64619c1ea9e0 (patch) | |
tree | ec35cedb135f2150b19597f4d46d9044baf1379f | |
parent | 01a8e65473b540bbbbb1383d59b5ee0b268796b5 (diff) |
Add native GNU Binutils build notes.
NB: The cross-compiling EGLIBC configuration is wrong -- the Linux
compatibility version (the value of '--enable-kernel') is too high for
the host system. As a result, the configure script of Binutils fails
because any binaries built against this temporary EGLIBC can't be run on
the host system.
-rw-r--r-- | bootstrap-system-build-procedure.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bootstrap-system-build-procedure.txt b/bootstrap-system-build-procedure.txt index 9844385..5eb82aa 100644 --- a/bootstrap-system-build-procedure.txt +++ b/bootstrap-system-build-procedure.txt @@ -140,3 +140,12 @@ everything works. $ ${BBLL_TARGET}-gcc -B/tools/usr/lib test.c $ readelf -l a.out | grep ': /tools/usr' $ rm -v test.c a.out + +Cross-compile a native GNU Binutils. + $ mkdir -v binutils-build + $ cd binutils-build + $ CC="${BBLL_TARGET}-gcc -B/tools/usr/lib" AR=${BBLL_TARGET}-ar \ + > RANLIB=${BBLL_TARGET}-ranlib ../binutils-2.22/configure \ + > --prefix=/tools/usr --disable-nls --with-lib-path=/tools/usr/lib + $ make -j 4 + $ make install |