- fix evaluation of HOSTCFLAGS for kconfig. Closes #1415
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 9 Jul 2007 18:23:20 +0000 (18:23 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 9 Jul 2007 18:23:20 +0000 (18:23 -0000)
Makefile

index 2b1deabca3e88702c43cfa07ad88a187ff012235..3563e5ae4fe53aa9389736c7c3f9994ed0d5de3f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -264,14 +264,17 @@ all: menuconfig
 # configuration
 # ---------------------------------------------------------------------------
 
+HOSTCFLAGS=$(CFLAGS_FOR_BUILD)
+export HOSTCFLAGS
+
 $(CONFIG)/conf:
-       $(MAKE) CC="$(HOSTCC)" HOSTCFLAGS="$(CFLAGS_FOR_BUILD)" MAKECMDGOALS="$(MAKECMDGOALS)" \
+       $(MAKE) CC="$(HOSTCC)" MAKECMDGOALS="$(MAKECMDGOALS)" \
                -C $(CONFIG) conf
        -@if [ ! -f .config ] ; then \
                cp $(CONFIG_DEFCONFIG) .config; \
        fi
 $(CONFIG)/mconf:
-       $(MAKE) CC="$(HOSTCC)" HOSTCFLAGS="$(CFLAGS_FOR_BUILD)" MAKECMDGOALS="$(MAKECMDGOALS)" \
+       $(MAKE) CC="$(HOSTCC)" MAKECMDGOALS="$(MAKECMDGOALS)" \
                -C $(CONFIG) conf mconf
        -@if [ ! -f .config ] ; then \
                cp $(CONFIG_DEFCONFIG) .config; \