diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2020-05-23 00:12:45 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-05-23 00:12:45 +0100 |
commit | 9fc1728560e2cd81d27dd85dc766152ddccf65c5 (patch) | |
tree | c4e7fdc890d9767600f0f2b92d8802dd34f9bee2 | |
parent | src/binutils-config: add --nocolor option (diff) | |
download | binutils-config-9fc1728560e2cd81d27dd85dc766152ddccf65c5.tar.gz binutils-config-9fc1728560e2cd81d27dd85dc766152ddccf65c5.tar.bz2 binutils-config-9fc1728560e2cd81d27dd85dc766152ddccf65c5.zip |
binutils-config: document current binary assumptions
There is a difference in gcc / binutils layout:
binutils binaries are always unprefixed.
Bug: https://bugs.gentoo.org/724454
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
-rwxr-xr-x | src/binutils-config | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/binutils-config b/src/binutils-config index 4dc4939..cb7b905 100755 --- a/src/binutils-config +++ b/src/binutils-config @@ -126,6 +126,18 @@ switch_profile() { setup_env || return 1 + # Facts on binutils's private binary dir contents: + # + # Native directory looks like: + # /usr/x86_64-pc-linux-gnu/binutils-bin/2.34 + # Contents are unprefixed tools: + # - ar, as, nm, ... + # + # Cross directory looks like: + # /usr/x86_64-pc-linux-gnu/ia64-unknown-linux-gnu/binutils-bin/2.34 + # Contents are also unprefixed tools: + # - ar, as, nm, ... + cd "${ROOT}/${BINPATH}" || exit 1 mkdir -p "${ROOT}/${BINPATH_LINKS}" "${EROOT}/usr/bin" for x in * ; do |