1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/binutils/2.18a/110-enable-dash-v2.patch Wed Nov 16 17:36:17 2011 -0500
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 + }