From: Bernhard Reutner-Fischer Date: Mon, 9 Jul 2007 18:23:20 +0000 (-0000) Subject: - fix evaluation of HOSTCFLAGS for kconfig. Closes #1415 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c0d7d4e0355b49b489d7235e945481cf5d32087f;p=buildroot.git - fix evaluation of HOSTCFLAGS for kconfig. Closes #1415 --- diff --git a/Makefile b/Makefile index 2b1deabca3..3563e5ae4f 100644 --- 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; \