1 |
commit: 9fc1728560e2cd81d27dd85dc766152ddccf65c5 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 22 23:12:45 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 22 23:12:45 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/binutils-config.git/commit/?id=9fc17285 |
7 |
|
8 |
binutils-config: document current binary assumptions |
9 |
|
10 |
There is a difference in gcc / binutils layout: |
11 |
binutils binaries are always unprefixed. |
12 |
|
13 |
Bug: https://bugs.gentoo.org/724454 |
14 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
15 |
|
16 |
src/binutils-config | 12 ++++++++++++ |
17 |
1 file changed, 12 insertions(+) |
18 |
|
19 |
diff --git a/src/binutils-config b/src/binutils-config |
20 |
index 4dc4939..cb7b905 100755 |
21 |
--- a/src/binutils-config |
22 |
+++ b/src/binutils-config |
23 |
@@ -126,6 +126,18 @@ switch_profile() { |
24 |
|
25 |
setup_env || return 1 |
26 |
|
27 |
+ # Facts on binutils's private binary dir contents: |
28 |
+ # |
29 |
+ # Native directory looks like: |
30 |
+ # /usr/x86_64-pc-linux-gnu/binutils-bin/2.34 |
31 |
+ # Contents are unprefixed tools: |
32 |
+ # - ar, as, nm, ... |
33 |
+ # |
34 |
+ # Cross directory looks like: |
35 |
+ # /usr/x86_64-pc-linux-gnu/ia64-unknown-linux-gnu/binutils-bin/2.34 |
36 |
+ # Contents are also unprefixed tools: |
37 |
+ # - ar, as, nm, ... |
38 |
+ |
39 |
cd "${ROOT}/${BINPATH}" || exit 1 |
40 |
mkdir -p "${ROOT}/${BINPATH_LINKS}" "${EROOT}/usr/bin" |
41 |
for x in * ; do |