fix gcc compile
authorFelix Fietkau <nbd@openwrt.org>
Tue, 10 Oct 2006 19:55:54 +0000 (19:55 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 10 Oct 2006 19:55:54 +0000 (19:55 +0000)
SVN-Revision: 5032

openwrt/rules.mk
openwrt/toolchain/gcc/Makefile

index 8e5294e..b9859db 100644 (file)
@@ -8,7 +8,9 @@
 -include $(TOPDIR)/.config
 include $(TOPDIR)/include/verbose.mk
 
-export SHELL=/usr/bin/env bash -c '. $(TOPDIR)/include/shell.sh; eval "$$2"'  --
+export SHELL=/usr/bin/env bash -c '. $(TOPDIR)/include/shell.sh; eval "$$2"' --
+export BASH=$(shell which bash)
+
 ARCH:=$(strip $(subst ",, $(CONFIG_ARCH)))
 TARGET_OPTIMIZATION:=$(strip $(subst ",, $(CONFIG_TARGET_OPTIMIZATION)))
 WGET:=$(strip $(subst ",, $(CONFIG_WGET)))
index 8a23375..7ef6005 100644 (file)
@@ -45,6 +45,7 @@ include $(INCLUDE_DIR)/host-build.mk
 BUILD_DIR1:=$(TOOLCHAIN_BUILD_DIR)/gcc-$(PKG_VERSION)-initial
 BUILD_DIR2:=$(TOOLCHAIN_BUILD_DIR)/gcc-$(PKG_VERSION)-final
 
+override SHELL:=$(BASH)
 
 define Stage1/Configure
        mkdir -p $(BUILD_DIR1)