From 076e9f74f87e7d5db2e838d7969ef57f9d9ec9d6 Mon Sep 17 00:00:00 2001 From: nbd Date: Sat, 2 Apr 2011 14:27:51 +0000 Subject: 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26405 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- rules.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'rules.mk') diff --git a/rules.mk b/rules.mk index 428258f5f..a3516a57a 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 -- cgit v1.2.3