changeset 385:4e331a1d678b

Upgrade binutils to 2.18 (needed to work around powerpc linking bug in 2.6.26).
author Rob Landley <rob@landley.net>
date Mon, 11 Aug 2008 03:17:08 -0500
parents 53d50555c1ae
children 59e22ea53e6a
files cross-compiler.sh download.sh sources/patches/binutils-2.18-screwinfo.patch
diffstat 3 files changed, 23 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/cross-compiler.sh	Sun Aug 10 22:08:09 2008 -0500
+++ b/cross-compiler.sh	Mon Aug 11 03:17:08 2008 -0500
@@ -15,6 +15,7 @@
 # Build and install binutils
 
 setupfor binutils build-binutils &&
+AR=ar AS=as LD=ld NM=nm OBJDUMP=objdump OBJCOPY=objcopy \
 "${CURSRC}/configure" --prefix="${CROSS}" --host=${CROSS_HOST} \
 	--target=${CROSS_TARGET} --with-lib-path=lib --disable-nls \
 	--disable-shared --disable-multilib --program-prefix="${ARCH}-" \
--- a/download.sh	Sun Aug 10 22:08:09 2008 -0500
+++ b/download.sh	Mon Aug 11 03:17:08 2008 -0500
@@ -16,9 +16,9 @@
 
 echo "=== Download source code." &&
 
-# Note, a blank SHA1 value means accept anything, and the download script
+# Note: a blank SHA1 value means accept anything, and the download script
 # prints out the sha1 of such files after downloading it, so to update to
-# a new version of a file, set SHA1= and updat the URL, run ./download.sh,
+# a new version of a file, set SHA1= and update the URL, run ./download.sh,
 # then cut and paste the sha1 from the output and run it again to confirm.
 
 # Required for cross compile toolchain
@@ -33,8 +33,8 @@
 #SHA1= \
 #download &&
 
-URL=ftp://ftp.gnu.org/gnu/binutils/binutils-2.17.tar.bz2 \
-SHA1=a557686eef68362ea31a3aa41ce274e3eeae1ef0 \
+URL=ftp://ftp.gnu.org/gnu/binutils/binutils-2.18.tar.bz2 \
+SHA1=fdec92e9dfc6c32155869f3910f47041c78e2277 \
 download &&
 
 URL=ftp://ftp.gnu.org/gnu/gcc/gcc-4.1.2/gcc-core-4.1.2.tar.bz2 \
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sources/patches/binutils-2.18-screwinfo.patch	Mon Aug 11 03:17:08 2008 -0500
@@ -0,0 +1,18 @@
+The binutils build notices that makeinfo is missing, but fails anyway, breaking
+the build.  Make it stop.
+
+The "info" file format is obsolete (similar to "gopher"), was never used
+by anyone but the FSF, and failed to even replace man pages (which are
+now available in HTML).
+
+--- binutils-2.18/missing	2005-07-13 20:24:56.000000000 -0500
++++ binutils-2.18/missing	2008-08-11 02:05:47.000000000 -0500
+@@ -299,7 +299,7 @@
+     fi
+     # If the file does not exist, the user really needs makeinfo;
+     # let's fail without touching anything.
+-    test -f $file || exit 1
++#    test -f $file || exit 1
+     touch $file
+     ;;
+