diff mbox

[1/1] toolchain: don't wrap ar, ranlib, and nm

Message ID 1415532968-9379-1-git-send-email-syntheticpp@gmx.net
State Superseded
Headers show

Commit Message

Peter Kümmel Nov. 9, 2014, 11:36 a.m. UTC
The gcc prefix of the the gcc-ar/ranlib/nm did trigger
the wrapping which breakes these tools because of the
passed GCC options.

These tools should be called when lto is used.

Signed-off-by: Peter Kümmel <syntheticpp@gmx.net>
---
 toolchain/toolchain-external/toolchain-external.mk | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/toolchain/toolchain-external/toolchain-external.mk b/toolchain/toolchain-external/toolchain-external.mk
index e16fce5..db35c43 100644
--- a/toolchain/toolchain-external/toolchain-external.mk
+++ b/toolchain/toolchain-external/toolchain-external.mk
@@ -634,6 +634,9 @@  define TOOLCHAIN_EXTERNAL_INSTALL_WRAPPER
 	for i in $(TOOLCHAIN_EXTERNAL_CROSS)*; do \
 		base=$${i##*/}; \
 		case "$$base" in \
+		*-ar|*-ranlib|*-nm) \
+		ln -sf $$(echo $$i | sed 's%^$(HOST_DIR)%../..%') .; \
+			;; \
 		*cc|*cc-*|*++|*++-*|*cpp) \
 			ln -sf ext-toolchain-wrapper $$base; \
 			;; \