#!/bin/bash set -x # http://kegel.com/crosstool/ # http://sources.redhat.com/ml/binutils/2003-10/msg00448.html # http://sources.redhat.com/ml/crossgcc/2004-03/msg00162.html # http://sources.redhat.com/ml/binutils/2001-10/msg00186.html ## http://mirrors.mathematik.uni-bielefeld.de/pub/linux/suse/ftp.suse.com/pub/projects/powerpc/ftp.linuxppc64.org/pub/people/janis/old/README.20040130 ## http://mirrors.mathematik.uni-bielefeld.de/pub/linux/suse/ftp.suse.com/pub/projects/powerpc/ftp.linuxppc64.org/pub/people/janis/old/glibc.patch.20040121 ; [ ! -f crosstool-0.28-rc37.tar.gz ] && \ wget http://kegel.com/crosstool/crosstool-0.28-rc37.tar.gz || true tar xzf crosstool-0.28-rc37.tar.gz cd crosstool-0.28-rc37 pwd ## NPTL patch: when ARCH=ppc, dirname needs to be "powerpc" ## patch the patch ... patch -p 0 <