summaryrefslogtreecommitdiffstats
path: root/scripts/link-vmlinux.sh
diff options
context:
space:
mode:
authorPaul Cercueil2015-04-17 23:35:04 +0200
committerMichal Marek2015-04-27 14:21:10 +0200
commitee4eb20dbce91751c248399e8a0cf9b8813adf5a (patch)
tree75fcc453aaac8d5c752c0be269dc917938cd6854 /scripts/link-vmlinux.sh
parentLinux 4.1-rc1 (diff)
downloadkernel-qcow2-linux-ee4eb20dbce91751c248399e8a0cf9b8813adf5a.tar.gz
kernel-qcow2-linux-ee4eb20dbce91751c248399e8a0cf9b8813adf5a.tar.xz
kernel-qcow2-linux-ee4eb20dbce91751c248399e8a0cf9b8813adf5a.zip
Makefile: Fix detection of clang when cross-compiling
When the host's C compiler is clang, and when attempting to cross-compile Linux e.g. to MIPS with mipsel-linux-gcc, the Makefile would incorrectly detect the use of clang, which resulted in clang-specific flags being passed to mipsel-linux-gcc. This can be verified under Debian by installing the "clang" package, and then using it as the default compiler with: sudo update-alternatives --config cc This patch moves the detection of clang after the $(CC) variable is initialized to the name of the cross-compiler, so that the check applies to the cross-compiler and not the host's C compiler. v2: Move the detection of clang after the inclusion of the arch/*/Makefile (as they might set $(CROSS_COMPILE)) Signed-off-by: Paul Cercueil <paul@crapouillou.net> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/link-vmlinux.sh')
0 files changed, 0 insertions, 0 deletions