commit: 9fc1728560e2cd81d27dd85dc766152ddccf65c5 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> AuthorDate: Fri May 22 23:12:45 2020 +0000 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> CommitDate: Fri May 22 23:12:45 2020 +0000 URL: https://gitweb.gentoo.org/proj/binutils-config.git/commit/?id=9fc17285
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 <AT> gentoo.org> src/binutils-config | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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
