Fix PR bootstrap/102389: --with-build-config=bootstrap-lto is broken
authorAndrew Pinski <apinski@marvell.com>
Mon, 7 Aug 2023 11:07:21 +0000 (13:07 +0200)
committerAlan Modra <amodra@gmail.com>
Sat, 12 Aug 2023 00:54:26 +0000 (10:24 +0930)
commit9f2c14223f04597b29bbaeab961aedfceacc52c3
tree0b2cebbf6cba264ca56b5481bdffb2b47ed67287
parent83e8a1eff6defc72e6273cfb5379a0a6ddf525b5
Fix PR bootstrap/102389: --with-build-config=bootstrap-lto is broken

So the problem here is that now the lto-plugin requires NM that works
with LTO to work so we need to pass down NM just like we do for ranlib
and ar.

config/
* bootstrap-lto-lean.mk: Handle NM like RANLIB AND AR.
* bootstrap-lto.mk: Likewise.
config/bootstrap-lto-lean.mk
config/bootstrap-lto.mk