sh: Do not use hyphen in exported variable name
authorBen Hutchings <benh@debian.org>
Thu, 17 Jul 2025 14:47:32 +0000 (16:47 +0200)
committerJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Sat, 26 Jul 2025 15:15:41 +0000 (17:15 +0200)
commitc32969d0362a790fbc6117e0b6a737a7e510b843
tree69db915b578c6e081494cf5d02342abde8eaf170
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
sh: Do not use hyphen in exported variable name

arch/sh/Makefile defines and exports ld-bfd to be used by
arch/sh/boot/compressed/Makefile and arch/sh/boot/romimage/Makefile.
However some shells, including dash, will not pass through environment
variables whose name includes a hyphen.  Usually GNU make does not use
a shell to recurse, but if e.g. $(srctree) contains '~' it will use a
shell here.

Other instances of this problem were previously fixed by commits
2bfbe7881ee0 "kbuild: Do not use hyphen in exported variable name"
and 82977af93a0d "sh: rename suffix-y to suffix_y".

Rename the variable to ld_bfd.

References: https://buildd.debian.org/status/fetch.php?pkg=linux&arch=sh4&ver=4.13%7Erc5-1%7Eexp1&stamp=1502943967&raw=0
Fixes: 7b022d07a0fd ("sh: Tidy up the ldscript output format specifier.")
Signed-off-by: Ben Hutchings <benh@debian.org>
Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
arch/sh/Makefile
arch/sh/boot/compressed/Makefile
arch/sh/boot/romimage/Makefile