- use the correct host compiler
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 22 Aug 2007 09:20:33 +0000 (09:20 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 22 Aug 2007 09:20:33 +0000 (09:20 -0000)
toolchain/kernel-headers/kernel-headers-new.makefile

index 1a8a83fde89f21294fd217ad62f18f1f2a9a44f7..e1cc429bdc41d26e65ce7be22aabc39d3d7f05e7 100644 (file)
@@ -82,9 +82,11 @@ endif
        touch $@
 
 $(LINUX_HEADERS_DIR)/.configured: $(LINUX_HEADERS_UNPACK_DIR)/.patched
-       (cd $(LINUX_HEADERS_UNPACK_DIR) ; \
-        $(MAKE) ARCH=$(KERNEL_ARCH) CC="$(HOSTCC)" \
-               INSTALL_HDR_PATH=$(LINUX_HEADERS_DIR) headers_install ; \
+       (cd $(LINUX_HEADERS_UNPACK_DIR); \
+        $(MAKE) ARCH=$(KERNEL_ARCH) \
+               HOSTCC="$(HOSTCC)" HOSTCFLAGS="$(HOSTCFLAGS)" \
+               HOSTCXX="$(HOSTCXX)" \
+               INSTALL_HDR_PATH=$(LINUX_HEADERS_DIR) headers_install; \
        )
        touch $@