[prev in list] [next in list] [prev in thread] [next in thread] 

List:       buildroot
Subject:    [Buildroot] [PATCH v2] toolchain: don't wrap ar, ranlib, and nm
From:       Peter Kümmel <syntheticpp () gmx ! net>
Date:       2014-11-09 13:10:18
Message-ID: 1415538618-15131-1-git-send-email-syntheticpp () gmx ! net
[Download RAW message or body]

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 --git a/toolchain/toolchain-external/toolchain-external.mk \
b/toolchain/toolchain-external/toolchain-external.mk index e16fce5..2bfad55 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; \
 			;; \
-- 
1.9.1

_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic