From 9fc1728560e2cd81d27dd85dc766152ddccf65c5 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 23 May 2020 00:12:45 +0100 Subject: 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 --- src/binutils-config | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') 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 -- cgit v1.2.3-65-gdbad