Ticket #9131: 0001-set-TOOLCHAIN_DIR-var-when-using-external-toolchain.patch

File 0001-set-TOOLCHAIN_DIR-var-when-using-external-toolchain.patch, 785 bytes (added by Sven Bachmann <dev@…>, 6 years ago)
  • rules.mk

    From fe27eaa9caf80f5a8a4c5f82f07b3fad1265a0bf Mon Sep 17 00:00:00 2001
    From: Sven Bachmann <dev@mcbachmann.de>
    Date: Tue, 29 Mar 2011 22:03:53 +0200
    Subject: [PATCH] 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>
    ---
     rules.mk |    1 +
     1 files changed, 1 insertions(+), 0 deletions(-)
    
    diff --git a/rules.mk b/rules.mk
    index 712118c..d32744d 100644
    a b ifndef DUMP 
    140140      ifneq ($(TOOLCHAIN_LIB_DIRS),) 
    141141        TARGET_LDFLAGS+= $(patsubst %,-L%,$(TOOLCHAIN_LIB_DIRS)) 
    142142      endif 
     143      TOOLCHAIN_DIR:=$(TOOLCHAIN_ROOT_DIR) 
    143144    endif 
    144145  endif 
    145146endif