From 42d657027e98eacafa1c32e0dab4d7a60de6f891 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 10 Oct 2006 19:55:54 +0000 Subject: [PATCH] fix gcc compile SVN-Revision: 5032 --- openwrt/rules.mk | 4 +++- openwrt/toolchain/gcc/Makefile | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/openwrt/rules.mk b/openwrt/rules.mk index 8e5294edb3..b9859dbd3f 100644 --- a/openwrt/rules.mk +++ b/openwrt/rules.mk @@ -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))) diff --git a/openwrt/toolchain/gcc/Makefile b/openwrt/toolchain/gcc/Makefile index 8a23375933..7ef6005d06 100644 --- a/openwrt/toolchain/gcc/Makefile +++ b/openwrt/toolchain/gcc/Makefile @@ -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) -- 2.25.1