kbuild: add KBUILD_HOSTLDFLAGS to cmd_host-csingle
authorHeiko Thiery <heiko.thiery@gmail.com>
Wed, 24 Aug 2022 08:37:23 +0000 (10:37 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 31 Aug 2022 16:16:01 +0000 (12:16 -0400)
commita638bd349ea438256daf9c1f323402a137c55e03
tree25257cb45976d7aaa17c21ef280540ebe14babb0
parentbf6376642fe8295f887144999713ebe644388205
kbuild: add KBUILD_HOSTLDFLAGS to cmd_host-csingle

When compiling executables from a single.c file, the linker is also
invoked. Pass the flags like the other linker commands.

cherry-pick kbuild change from Linux:

63185b46cdb3 (kbuild: use HOSTLDFLAGS for single .c executables)

Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
scripts/Makefile.host