diff options
author | lev <lev@FreeBSD.org> | 2008-01-30 19:33:30 +0800 |
---|---|---|
committer | lev <lev@FreeBSD.org> | 2008-01-30 19:33:30 +0800 |
commit | fba5e8a86c547b0e81420eea37ef38c8d50c7d93 (patch) | |
tree | 4102b903ef122916f9762f37b872de39aca3b795 | |
parent | bdeaa7e7368fb6f75aa9713d87b6e13c1a2434fb (diff) | |
download | freebsd-ports-gnome-fba5e8a86c547b0e81420eea37ef38c8d50c7d93.tar.gz freebsd-ports-gnome-fba5e8a86c547b0e81420eea37ef38c8d50c7d93.tar.zst freebsd-ports-gnome-fba5e8a86c547b0e81420eea37ef38c8d50c7d93.zip |
Fix annoying error in `ld' build process.
PR: ports/119688
Submitted by: Naram Qashat
-rw-r--r-- | devel/mingw32-binutils/files/patch-ld-genscripts.sh | 41 |
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 000000000000..b1d68faeb4be --- /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 |