aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-05-23 00:12:45 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2020-05-23 00:12:45 +0100
commit9fc1728560e2cd81d27dd85dc766152ddccf65c5 (patch)
treec4e7fdc890d9767600f0f2b92d8802dd34f9bee2
parentsrc/binutils-config: add --nocolor option (diff)
downloadbinutils-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-xsrc/binutils-config12
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