From 4a4037df1ce2c2e4b0ef8e0a155e64619c1ea9e0 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 31 Dec 2011 03:16:44 -0500 Subject: 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. --- (limited to 'bootstrap-system-build-procedure.txt') 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 -- cgit v0.9.1