From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 332971382C5 for ; Fri, 22 May 2020 13:23:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2AC9DE08B1; Fri, 22 May 2020 13:23:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0F8BCE08B1 for ; Fri, 22 May 2020 13:23:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8AE5934F2BF for ; Fri, 22 May 2020 13:23:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 38B6423E for ; Fri, 22 May 2020 13:23:31 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1590153768.7afca3b66cac89ed09172181252aed8fde9836c7.slyfox@gentoo> Subject: [gentoo-commits] proj/gcc-config:master commit in: / X-VCS-Repository: proj/gcc-config X-VCS-Files: gcc-config X-VCS-Directories: / X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 7afca3b66cac89ed09172181252aed8fde9836c7 X-VCS-Branch: master Date: Fri, 22 May 2020 13:23:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8df616c1-459d-4cf8-ae5c-6c8bbc3e8c39 X-Archives-Hash: c8b4ba78631414298b16bf621e60054c commit: 7afca3b66cac89ed09172181252aed8fde9836c7 Author: Sergei Trofimovich gentoo org> AuthorDate: Fri May 22 13:22:48 2020 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Fri May 22 13:22:48 2020 +0000 URL: https://gitweb.gentoo.org/proj/gcc-config.git/commit/?id=7afca3b6 gcc-config: make USE_NATIVE_LINKS=no to clean /lib/cpp Bug: https://bugs.gentoo.org/724454 Signed-off-by: Sergei Trofimovich gentoo.org> 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 }