tools: clean up Makefiles / make ccache work
authorJohn Crispin <john@openwrt.org>
Sun, 15 Jan 2012 11:43:13 +0000 (11:43 +0000)
committerJohn Crispin <john@openwrt.org>
Sun, 15 Jan 2012 11:43:13 +0000 (11:43 +0000)
SVN-Revision: 29754

Makefile

index 46fc40c37e63e66e166307aced1b981387336528..cd7531f216a421de2a735054d766cc8d63e92b17 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ include $(INCLUDE_DIR)/host-build.mk
 include $(INCLUDE_DIR)/kernel.mk
 
 define cc
-       $(CC) $(HOST_CFLAGS) -include endian.h -o $(HOST_BUILD_DIR)/bin/$(firstword $(1)) $(foreach src,$(1),src/$(src).c) $(2)
+       $(HOSTCC) $(HOST_CFLAGS) -include endian.h -o $(HOST_BUILD_DIR)/bin/$(firstword $(1)) $(foreach src,$(1),src/$(src).c) $(2)
 endef
 
 define Host/Compile