Fix PR bootstrap/102389: --with-build-config=bootstrap-lto is broken
authorAndrew Pinski <apinski@marvell.com>
Sat, 18 Sep 2021 01:08:17 +0000 (01:08 +0000)
committerAndrew Pinski <apinski@marvell.com>
Sun, 19 Sep 2021 17:29:36 +0000 (17:29 +0000)
commit68aace4458364fee201889aaaedfce59beb972f2
treeb8443f16a9cb5371eb5621fa0af4b9e150ca6612
parent08900f28893b98b2ad0e0c284338d8555636067c
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.

OK? Bootstrapped and tested with --with-build-config=bootstrap-lto on aarch64-linux-gnu.
Note you need to use binutils 2.35 or later too due to ttps://sourceware.org/PR25355
(I will submit another patch to improve the installation instructions too).

config/ChangeLog:

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