summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-07-01 00:06:24 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2020-07-02 00:57:45 +0900
commitb816b3db15f68690ee72a4a414624f8e82942b25 (patch)
treedefed5906aa7bed07ef2eb81367a18087cd942dc /Makefile
parent8f8499a910e63f9973b95c183e2d3bccfe9845ac (diff)
downloadlwn-b816b3db15f68690ee72a4a414624f8e82942b25.tar.gz
lwn-b816b3db15f68690ee72a4a414624f8e82942b25.zip
kbuild: fix CONFIG_CC_CAN_LINK(_STATIC) for cross-compilation with Clang
scripts/cc-can-link.sh tests if the compiler can link userspace programs. When $(CC) is GCC, it is checked against the target architecture because the toolchain prefix is specified as a part of $(CC). When $(CC) is Clang, it is checked against the host architecture because --target option is missing. Pass $(CLANG_FLAGS) to scripts/cc-can-link.sh to evaluate the link capability for the target architecture. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions