summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2020-04-14 19:33:59 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-05-19 07:34:47 +0200
commitdad9fda924782728f899ce26657317ffc07122b0 (patch)
tree4ed0eb212662e8ac46711406c454b23290175322
parentf98eb43efe8ffc11758c2339f48765cc2eab0a27 (diff)
downloadOSELAS.Toolchain-dad9fda924782728f899ce26657317ffc07122b0.tar.gz
cross-binutils: fix broken symlinks for gcc-first
The symlinks pointed to non-existent files. As a result, '<cross-prefix>-gcc -print-prog-name=objcopy' returned just 'objcopy' which is the host objcopy and not the one from cross-binutils. glibc-first uses this incorrect objcopy at build time. Building may fail if the used objcopy is not multiarch capable. With the correct symlinks -print-prog-name works correctly and produces an absolute path to the correct objcopy. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/cross-binutils.make2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/cross-binutils.make b/rules/cross-binutils.make
index d270dde..0b92b8b 100644
--- a/rules/cross-binutils.make
+++ b/rules/cross-binutils.make
@@ -87,7 +87,7 @@ endif
ranlib \
strip \
; do \
- ln -sf "../../../$(PTXCONF_GNU_TARGET)/bin/$$file" \
+ ln -sf "$(PTXDIST_SYSROOT_CROSS)$(PTXCONF_PREFIX_CROSS)/$(PTXCONF_GNU_TARGET)/bin/$$file" \
"$(CROSS_GCC_FIRST_PREFIX)/$(PTXCONF_GNU_TARGET)/bin/$$file"; \
done