From: Jan Beulich Date: Fri, 6 Jan 2023 12:36:39 +0000 (+0100) Subject: ld: yet another PDB build fix (or workaround) X-Git-Tag: binutils-2_41~2474 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=47bb5b33f742b4338bfa9608288830aecb085da4;p=thirdparty%2Fbinutils-gdb.git ld: yet another PDB build fix (or workaround) Older bash looks to improperly deal with backslashes in here-documents, leaving them in place on the escaped double quotes inside the parameter expansion. Convert to a model without using such a construct, by simply splitting the here-documents into three ones. --- diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em index bce1d1b9052..323724b84f5 100644 --- a/ld/emultempl/pe.em +++ b/ld/emultempl/pe.em @@ -15,13 +15,6 @@ case ${target} in ;; esac -case ${target} in - x86_64-*-mingw* | x86_64-*-pe | x86_64-*-pep | x86_64-*-cygwin | \ - i[3-7]86-*-mingw32* | i[3-7]86-*-cygwin* | i[3-7]86-*-winnt | i[3-7]86-*-pe) - pdb_support=" ";; - *) -esac - rm -f e${EMULATION_NAME}.c (echo;echo;echo;echo;echo)>e${EMULATION_NAME}.c # there, now line numbers match ;-) fragment <e${EMULATION_NAME}.c # there, now line numbers match ;-) fragment <