kbuild: enable 'make CFLAGS=...' to add additional options to CC
[linux-3.10.git] / arch / sh / boot / compressed / Makefile
index 013504a..906a13f 100644 (file)
@@ -21,7 +21,7 @@ IMAGE_OFFSET  := $(shell /bin/bash -c 'printf "0x%08x" \
                        $(CONFIG_MEMORY_START) + \
                        $(CONFIG_BOOT_LINK_OFFSET)]')
 
-LIBGCC := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
+LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
 
 LDFLAGS_vmlinux := -Ttext $(IMAGE_OFFSET) -e startup -T $(obj)/../../kernel/vmlinux.lds