summaryrefslogtreecommitdiff
path: root/devel/avr-binutils/files/patch-bug5215
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>2007-10-27 21:21:50 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>2007-10-27 21:21:50 +0000
commitf43e9d0fe972a17348602db9459e59337aefe08e (patch)
treebde48ce19080a783db2384d5d783fe95d833c100 /devel/avr-binutils/files/patch-bug5215
parent- Update MASTER_SITES (diff)
Update to binutils-2.18.
Notes
Notes: svn path=/head/; revision=202169
Diffstat (limited to 'devel/avr-binutils/files/patch-bug5215')
-rw-r--r--devel/avr-binutils/files/patch-bug521552
1 files changed, 52 insertions, 0 deletions
diff --git a/devel/avr-binutils/files/patch-bug5215 b/devel/avr-binutils/files/patch-bug5215
new file mode 100644
index 000000000000..81f314d834ba
--- /dev/null
+++ b/devel/avr-binutils/files/patch-bug5215
@@ -0,0 +1,52 @@
+This is a workaround for
+
+http://sourceware.org/bugzilla/show_bug.cgi?id=5215
+
+--- ld/genscripts.sh.orig Wed Oct 24 09:38:43 2007
++++ ld/genscripts.sh Wed Oct 24 09:59:03 2007
+@@ -390,21 +390,21 @@
+ *" ${EMULATION_NAME} "*) COMPILE_IN=true;;
+ esac
+
+-if test -n "${BASH+set}"; then
+- source_em()
+- {
+- local current_script="$em_script"
+- em_script=$1
+- . $em_script
+- em_script=$current_script
+- }
+- fragment()
+- {
+- local lineno=$[${BASH_LINENO[0]} + 1]
+- echo >> e${EMULATION_NAME}.c "#line $lineno \"$em_script\""
+- cat >> e${EMULATION_NAME}.c
+- }
+-else
++#if test -n "${BASH+set}"; then
++# source_em()
++# {
++# local current_script="$em_script"
++# em_script=$1
++# . $em_script
++# em_script=$current_script
++# }
++# fragment()
++# {
++# local lineno=$[${BASH_LINENO[0]} + 1]
++# echo >> e${EMULATION_NAME}.c "#line $lineno \"$em_script\""
++# cat >> e${EMULATION_NAME}.c
++# }
++#else
+ source_em()
+ {
+ . $1
+@@ -413,7 +413,7 @@
+ {
+ cat >> e${EMULATION_NAME}.c
+ }
+-fi
++#fi
+
+ # Generate e${EMULATION_NAME}.c.
+ # Start with an empty file, then the sourced .em script