Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gcc-config:master commit in: /
Date: Fri, 22 May 2020 10:03:47
Message-Id: 1590141607.d52506c8d5e78e26ae607d8805a5436cb9c89c05.slyfox@gentoo
1 commit: d52506c8d5e78e26ae607d8805a5436cb9c89c05
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 22 10:00:07 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Fri May 22 10:00:07 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/gcc-config.git/commit/?id=d52506c8
7
8 gcc-config: link /lib/cpp to qualified 'cpp'
9
10 Change link /lib/cpp from /usr/bin/cpp to /usr/bin/${CTARGET}-cpp.
11 When USE_NATIVE_LINKS=no starts skipping unqualified links
12 we might want to delete /lib/cpp, or keep it. Depends on how
13 many tools depend on it's presence.
14
15 Bug: https://bugs.gentoo.org/724454
16 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
17
18 gcc-config | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21 diff --git a/gcc-config b/gcc-config
22 index 9dc09e0..95d2632 100755
23 --- a/gcc-config
24 +++ b/gcc-config
25 @@ -307,7 +307,7 @@ update_wrappers() {
26
27 # install the canonical cpp wrapper
28 if ! is_cross_compiler ; then
29 - atomic_ln "${EPREFIX%/}/usr/bin/cpp" "${EROOT}lib" "cpp"
30 + atomic_ln "${EPREFIX%/}/usr/bin/${CTARGET}-cpp" "${EROOT}lib" "cpp"
31 fi
32 }