summaryrefslogtreecommitdiff
path: root/patches/binutils
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-08-25 17:33:13 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-08-25 17:33:13 (GMT)
commitc2426e53f17db134f19b23babc1b7ef8488dcdae (patch)
tree825c9f48732b065ced08b2007eafa669f2d1137e /patches/binutils
parent916e8760dc7001a00ff4006242bcdfd0b183c93a (diff)
Allow binutils-2.18 to use a shell other than bash when building.
Diffstat (limited to 'patches/binutils')
-rw-r--r--patches/binutils/2.18/110-enable-dash-v2.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/patches/binutils/2.18/110-enable-dash-v2.patch b/patches/binutils/2.18/110-enable-dash-v2.patch
new file mode 100644
index 0000000..587082c
--- /dev/null
+++ b/patches/binutils/2.18/110-enable-dash-v2.patch
@@ -0,0 +1,20 @@
+Enable using a shell other than bash.
+Courtesy "Martin Guy" <martinwguy@yahoo.it>
+http://sourceware.org/ml/crossgcc/2008-08/msg00037.html
+
+--- binutils-2.18.orig/ld/genscripts.sh 2007-08-12 20:00:07.000000000 +0100
++++ binutils-2.18/ld/genscripts.sh 2008-08-25 16:09:54.000000000 +0100
+@@ -398,9 +398,11 @@
+ . $em_script
+ em_script=$current_script
+ }
+- fragment()
++
++ alias fragment='em_lineno=$LINENO; fragment_em'
++ fragment_em()
+ {
+- local lineno=$[${BASH_LINENO[0]} + 1]
++ local lineno=$[$em_lineno + 1]
+ echo >> e${EMULATION_NAME}.c "#line $lineno \"$em_script\""
+ cat >> e${EMULATION_NAME}.c
+ }