mirror of
https://git.freebsd.org/ports.git
synced 2025-07-16 16:59:17 -04:00
52 lines
1.1 KiB
Text
52 lines
1.1 KiB
Text
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
|