Allow binutils-2.18 to use a shell other than bash when building.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Aug 25 17:33:13 2008 +0000 (2008-08-25)
changeset 804c057564b1969
parent 803 1787813fc62a
child 805 ae730f907bed
Allow binutils-2.18 to use a shell other than bash when building.
patches/binutils/2.18/110-enable-dash-v2.patch
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/binutils/2.18/110-enable-dash-v2.patch	Mon Aug 25 17:33:13 2008 +0000
     1.3 @@ -0,0 +1,20 @@
     1.4 +Enable using a shell other than bash.
     1.5 +Courtesy "Martin Guy" <martinwguy@yahoo.it>
     1.6 +http://sourceware.org/ml/crossgcc/2008-08/msg00037.html
     1.7 +
     1.8 +--- binutils-2.18.orig/ld/genscripts.sh	2007-08-12 20:00:07.000000000 +0100
     1.9 ++++ binutils-2.18/ld/genscripts.sh	2008-08-25 16:09:54.000000000 +0100
    1.10 +@@ -398,9 +398,11 @@
    1.11 +     . $em_script
    1.12 +     em_script=$current_script
    1.13 +   }
    1.14 +-  fragment()
    1.15 ++  
    1.16 ++  alias fragment='em_lineno=$LINENO; fragment_em'
    1.17 ++  fragment_em()
    1.18 +   {
    1.19 +-    local lineno=$[${BASH_LINENO[0]} + 1]
    1.20 ++    local lineno=$[$em_lineno + 1]
    1.21 +     echo >> e${EMULATION_NAME}.c "#line $lineno \"$em_script\""
    1.22 +     cat >> e${EMULATION_NAME}.c
    1.23 +   }