aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-05-22 14:22:48 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2020-05-22 14:22:48 +0100
commit7afca3b66cac89ed09172181252aed8fde9836c7 (patch)
treee0b1c80aae77014fa045d68176dcd4a6cd8acc9e
parentgcc-config: make USE_NATIVE_LINKS=no to clean stale symlinks (diff)
downloadgcc-config-7afca3b66cac89ed09172181252aed8fde9836c7.tar.gz
gcc-config-7afca3b66cac89ed09172181252aed8fde9836c7.tar.bz2
gcc-config-7afca3b66cac89ed09172181252aed8fde9836c7.zip
gcc-config: make USE_NATIVE_LINKS=no to clean /lib/cppv2.3
Bug: https://bugs.gentoo.org/724454 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
-rwxr-xr-xgcc-config6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc-config b/gcc-config
index 8f9d64c..09d38f5 100755
--- a/gcc-config
+++ b/gcc-config
@@ -332,7 +332,11 @@ update_wrappers() {
# install the canonical cpp wrapper
if ! is_cross_compiler ; then
- atomic_ln "${EPREFIX%/}/usr/bin/${CTARGET}-cpp" "${EROOT}lib" "cpp"
+ if [[ ${USE_NATIVE_LINKS} == yes ]]; then
+ atomic_ln "${EPREFIX%/}/usr/bin/${CTARGET}-cpp" "${EROOT}lib" "cpp"
+ else
+ rm -f "${EROOT}lib/cpp"
+ fi
fi
}