diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-04-14 19:33:59 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-05-08 11:34:00 +0200 |
commit | 40d8f92a55bcbbb4bf9f337088481f942bc7b8ca (patch) | |
tree | 4376cf6b43f4e0538bed76b232e2f166384c0d32 /rules | |
parent | 3b971b2609835b44d6cf75ebd8c204938cc20dc3 (diff) | |
download | OSELAS.Toolchain-40d8f92a55bcbbb4bf9f337088481f942bc7b8ca.tar.gz OSELAS.Toolchain-40d8f92a55bcbbb4bf9f337088481f942bc7b8ca.tar.xz |
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>
Diffstat (limited to 'rules')
-rw-r--r-- | rules/cross-binutils.make | 2 |
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 |