kbuild: enable 'make CFLAGS=...' to add additional options to CC
[deliverable/linux.git] / arch / sh / Makefile
index 97ac58682d0fc10726b292093a92e1d5c99e3450..cd8a411acc95b302c4c41f714cccad7e01577cb0 100644 (file)
@@ -91,12 +91,12 @@ LDFLAGS_vmlinux             += --defsym 'jiffies=jiffies_64+4'
 LDFLAGS                        += -EB
 endif
 
-CFLAGS         += -pipe $(cflags-y)
+KBUILD_CFLAGS          += -pipe $(cflags-y)
 AFLAGS         += $(cflags-y)
 
 head-y := arch/sh/kernel/head.o arch/sh/kernel/init_task.o
 
-LIBGCC := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
+LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
 
 core-y                         += arch/sh/kernel/ arch/sh/mm/
 core-$(CONFIG_SH_FPU_EMU)      += arch/sh/math-emu/
This page took 0.053653 seconds and 5 git commands to generate.