Masahiro Yamada bcbcf50f52 kbuild: fix ld-version.sh to not be affected by locale
ld-version.sh checks the output from $(LD) --version, but it has a
problem on some locales.

For example, in Italian:

  $ LC_MESSAGES=it_IT.UTF-8 ld --version | head -n 1
  ld di GNU (GNU Binutils for Debian) 2.35.2

This makes ld-version.sh fail because it expects "GNU ld" for the
BFD linker case.

Add LC_ALL=C to override the user's locale.

BTW, setting LC_MESSAGES=C (or LANG=C) is not enough because it is
ineffective if LC_ALL is set on the user's environment.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=212105
Reported-by: Marco Scardovi
Reported-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Recensito-da: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
2021-03-13 11:12:13 +09:00
..
2021-02-12 19:23:39 -06:00
2021-03-05 12:12:28 -08:00
2021-02-26 09:41:05 -08:00
2021-02-24 10:25:37 -08:00
2020-12-08 23:30:04 +09:00
2020-12-08 23:30:04 +09:00
2021-02-01 10:37:19 +09:00
2021-02-22 08:22:04 +09:00
2021-02-23 12:46:57 -08:00
2021-02-25 10:17:31 -08:00
2020-10-22 13:13:57 -07:00
2021-02-26 09:41:05 -08:00
2021-02-23 10:15:33 -08:00
2020-12-08 23:30:04 +09:00
2021-01-27 14:50:12 +01:00
2021-02-01 17:17:14 -07:00
2020-12-08 23:30:04 +09:00