aboutsummaryrefslogtreecommitdiffstats
path: root/rules.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-04-02 14:27:51 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-04-02 14:27:51 +0000
commit19085ac323ce02dc463c4918c4495d9f01156900 (patch)
tree36d92826e5c03c880e1ce5b00cb6803e15e89c54 /rules.mk
parent1d9371f44139e55077c0b8680cbaddb431b7a9be (diff)
downloadupstream-19085ac323ce02dc463c4918c4495d9f01156900.tar.gz
upstream-19085ac323ce02dc463c4918c4495d9f01156900.tar.bz2
upstream-19085ac323ce02dc463c4918c4495d9f01156900.zip
set TOOLCHAIN_DIR var when using external toolchain
This patch allows to use the openwrt toolchain as external toolchain for the same project. See bug #9131 for details. Signed-off-by: Sven Bachmann <dev@mcbachmann.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26405 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules.mk b/rules.mk
index 428258f5f4..a3516a57a0 100644
--- a/rules.mk
+++ b/rules.mk
@@ -140,6 +140,7 @@ ifndef DUMP
ifneq ($(TOOLCHAIN_LIB_DIRS),)
TARGET_LDFLAGS+= $(patsubst %,-L%,$(TOOLCHAIN_LIB_DIRS))
endif
+ TOOLCHAIN_DIR:=$(TOOLCHAIN_ROOT_DIR)
endif
endif
endif