diff options
author | 2020-05-22 14:22:48 +0100 | |
---|---|---|
committer | 2020-05-22 14:22:48 +0100 | |
commit | 7afca3b66cac89ed09172181252aed8fde9836c7 (patch) | |
tree | e0b1c80aae77014fa045d68176dcd4a6cd8acc9e | |
parent | gcc-config: make USE_NATIVE_LINKS=no to clean stale symlinks (diff) | |
download | gcc-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-x | gcc-config | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 } |