diff options
Diffstat (limited to 'devel/avr-binutils/files/patch-bug5215')
-rw-r--r-- | devel/avr-binutils/files/patch-bug5215 | 52 |
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 |