From: Felix Fietkau Date: Sat, 2 Apr 2011 14:27:51 +0000 (+0000) Subject: set TOOLCHAIN_DIR var when using external toolchain X-Git-Tag: reboot~17064 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=21ff098352570f3bd7a161254207e8c40508c8e4;p=openwrt%2Fstaging%2Fxback.git 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 SVN-Revision: 26405 --- 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