aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--devel/mingw32-binutils/files/patch-ld-genscripts.sh41
1 files changed, 41 insertions, 0 deletions
diff --git a/devel/mingw32-binutils/files/patch-ld-genscripts.sh b/devel/mingw32-binutils/files/patch-ld-genscripts.sh
new file mode 100644
index 00000000000..b1d68faeb4b
--- /dev/null
+++ b/devel/mingw32-binutils/files/patch-ld-genscripts.sh
@@ -0,0 +1,41 @@
+--- ld/genscripts.sh.orig Sun Aug 12 15:00:07 2007
++++ ld/genscripts.sh Tue Jan 15 11:04:56 2008
+@@ -390,30 +390,14 @@
+ *" ${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
+- source_em()
+- {
+- . $1
+- }
+- fragment()
+- {
+- cat >> e${EMULATION_NAME}.c
+- }
+-fi
++source_em()
++{
++ . $1
++}
++fragment()
++{
++ cat >> e${EMULATION_NAME}.c
++}
+
+ # Generate e${EMULATION_NAME}.c.
+ # Start with an empty file, then the sourced .em script