- use the HOSTCC for building host-tools.
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 3 Oct 2006 14:11:12 +0000 (14:11 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 3 Oct 2006 14:11:12 +0000 (14:11 -0000)
package/mtd/mtd.mk

index afba855eba974a83bf2e9cdb9dace97274606b5c..9ee8d93c124f3cd64119f5639ac862ad9a25ee35 100644 (file)
@@ -57,7 +57,7 @@ $(MTD_HOST_DIR)/.unpacked: $(DL_DIR)/$(MTD_SOURCE)
 endif
 
 $(MTD_HOST_DIR)/util/mkfs.jffs2: $(MTD_HOST_DIR)/.unpacked
-       CFLAGS=-I$(LINUX_HEADERS_DIR)/include \
+       CC="$(HOSTCC)" CROSS= CFLAGS=-I$(LINUX_HEADERS_DIR)/include \
                $(MAKE) LINUXDIR=$(LINUX_DIR) -C $(MTD_HOST_DIR)/util mkfs.jffs2
 
 mtd-host: $(MKFS_JFFS2)