aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-05-22 11:00:07 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2020-05-22 11:00:07 +0100
commitd52506c8d5e78e26ae607d8805a5436cb9c89c05 (patch)
treee8ffe2e2d6770d02053bfc456f080d4c88fd4967
parentgcc-config: add build-time and runtime switches to disable native symlinks (diff)
downloadgcc-config-d52506c8d5e78e26ae607d8805a5436cb9c89c05.tar.gz
gcc-config-d52506c8d5e78e26ae607d8805a5436cb9c89c05.tar.bz2
gcc-config-d52506c8d5e78e26ae607d8805a5436cb9c89c05.zip
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@gentoo.org>
-rwxr-xr-xgcc-config2
1 files changed, 1 insertions, 1 deletions
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
}