git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
powerpc/boot: Use clang when CC is clang
[sfrench/cifs-2.6.git]
/
arch
/
powerpc
/
boot
/
Makefile
diff --git
a/arch/powerpc/boot/Makefile
b/arch/powerpc/boot/Makefile
index f8ce6d2dde7b1f72544374fb0ee01c67b7ed560a..68a7534454cd8dceedafe521e1069832e574b681 100644
(file)
--- a/
arch/powerpc/boot/Makefile
+++ b/
arch/powerpc/boot/Makefile
@@
-21,7
+21,11
@@
all: $(obj)/zImage
ifdef CROSS32_COMPILE
+ifdef CONFIG_CC_IS_CLANG
+ BOOTCC := $(CROSS32_COMPILE)clang
+else
BOOTCC := $(CROSS32_COMPILE)gcc
+endif
BOOTAR := $(CROSS32_COMPILE)ar
else
BOOTCC := $(CC)