]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - Makefile
kbuild: allow to use GCC toolchain not in Clang search path
authorStefan Agner <stefan@agner.ch>
Tue, 18 Sep 2018 02:31:57 +0000 (19:31 -0700)
committerSultan Alsawaf <sultan.alsawaf@canonical.com>
Wed, 24 Jul 2019 15:44:53 +0000 (09:44 -0600)
commitc758eb9f8d720b33e4496bcf39d1bb53226d885f
treeed0ccecc0f367d06e2c7d01b233a4b2434cc2286
parent77fc410ef9b6bf4120c6ac4662cd524e255321d3
kbuild: allow to use GCC toolchain not in Clang search path

BugLink: https://bugs.launchpad.net/bugs/1836968
commit ef8c4ed9db80261f397f0c0bf723684601ae3b52 upstream.

When using a GCC cross toolchain which is not in a compiled in
Clang search path, Clang reverts to the system assembler and
linker. This leads to assembler or linker errors, depending on
which tool is first used for a given architecture.

It seems that Clang is not searching $PATH for a matching
assembler or linker.

Make sure that Clang picks up the correct assembler or linker by
passing the cross compilers bin directory as search path.

This allows to use Clang provided by distributions with GCC
toolchains not in /usr/bin.

Link: https://github.com/ClangBuiltLinux/linux/issues/78
Signed-off-by: Stefan Agner <stefan@agner.ch>
Reviewed-and-tested-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
[nc: Adjust context]
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
Makefile