commit:     d52506c8d5e78e26ae607d8805a5436cb9c89c05
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Fri May 22 10:00:07 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Fri May 22 10:00:07 2020 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-config.git/commit/?id=d52506c8

gcc-config: link /lib/cpp to qualified 'cpp'

Change link /lib/cpp from /usr/bin/cpp to /usr/bin/${CTARGET}-cpp.
When USE_NATIVE_LINKS=no starts skipping unqualified links
we might want to delete /lib/cpp, or keep it. Depends on how
many tools depend on it's presence.

Bug: https://bugs.gentoo.org/724454
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 gcc-config | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc-config b/gcc-config
index 9dc09e0..95d2632 100755
--- a/gcc-config
+++ b/gcc-config
@@ -307,7 +307,7 @@ update_wrappers() {
 
        # install the canonical cpp wrapper
        if ! is_cross_compiler ; then
-               atomic_ln "${EPREFIX%/}/usr/bin/cpp" "${EROOT}lib" "cpp"
+               atomic_ln "${EPREFIX%/}/usr/bin/${CTARGET}-cpp" "${EROOT}lib" 
"cpp"
        fi
 }
 

Reply via email to