patches/binutils/2.18/110-enable-dash-v2.patch
changeset 2664 346263a07115
parent 2663 7179903f8d2e
child 2665 5b7e91ec300c
     1.1 --- a/patches/binutils/2.18/110-enable-dash-v2.patch	Sun Sep 11 18:26:12 2011 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,20 +0,0 @@
     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 -   }