From 7afca3b66cac89ed09172181252aed8fde9836c7 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 22 May 2020 14:22:48 +0100 Subject: gcc-config: make USE_NATIVE_LINKS=no to clean /lib/cpp Bug: https://bugs.gentoo.org/724454 Signed-off-by: Sergei Trofimovich --- gcc-config | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 } -- cgit v1.2.3