[openwrt/openwrt] rules_mk: don't include wrapped bin with external toolchains

LEDE Commits lede-commits at lists.infradead.org
Sun Dec 4 07:07:42 PST 2022


ansuel pushed a commit to openwrt/openwrt.git, branch openwrt-21.02:
https://git.openwrt.org/654e0242e426423409a704bfc5f72b64ebd8d283

commit 654e0242e426423409a704bfc5f72b64ebd8d283
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Sun Jul 3 02:06:21 2022 +0200

    rules_mk: don't include wrapped bin with external toolchains
    
    Don't add wrapped bin to the TARGET_PATH as it does cause compilation
    error.
    
    cmake.mk will use the "command -v" and will use the wrapped bin instead
    of the external toolchain bin as they have the same name and command
    will select the first result.
    
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
    (cherry picked from commit a90eabf60255773231ed0259e5da5eb6a36fe9ce)
---
 rules.mk | 1 -
 1 file changed, 1 deletion(-)

diff --git a/rules.mk b/rules.mk
index 7c83d90eda..9c694e17ce 100644
--- a/rules.mk
+++ b/rules.mk
@@ -212,7 +212,6 @@ ifndef DUMP
       ifneq ($(TOOLCHAIN_LIB_DIRS),)
         TARGET_LDFLAGS+= $(patsubst %,-L%,$(TOOLCHAIN_LIB_DIRS))
       endif
-      TARGET_PATH:=$(TOOLCHAIN_DIR)/bin:$(TARGET_PATH)
     endif
   endif
 endif




More information about the lede-commits mailing list