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 9A1F11382C5 for ; Wed, 24 Jun 2020 20:47:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 767B1E095C; Wed, 24 Jun 2020 20:47:22 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 3C2E3E095C for ; Wed, 24 Jun 2020 20:47:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 2914C34F101 for ; Wed, 24 Jun 2020 20:47:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6B685175 for ; Wed, 24 Jun 2020 20:47:18 +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: <1593031584.1b3cea081588bd5e3491b66f65035c5772733eff.slyfox@gentoo> Subject: [gentoo-commits] proj/gcc-config:master commit in: / X-VCS-Repository: proj/gcc-config X-VCS-Files: Makefile gcc-config X-VCS-Directories: / X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 1b3cea081588bd5e3491b66f65035c5772733eff X-VCS-Branch: master Date: Wed, 24 Jun 2020 20:47:18 +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: 8b2c2b7c-40a6-4b50-be90-f24a4c41b110 X-Archives-Hash: 836ad7b952aaa59841cc7b9b14980251 commit: 1b3cea081588bd5e3491b66f65035c5772733eff Author: Manoj Gupta google com> AuthorDate: Wed Jun 24 17:40:14 2020 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Wed Jun 24 20:46:24 2020 +0000 URL: https://gitweb.gentoo.org/proj/gcc-config.git/commit/?id=1b3cea08 gcc-config: make USE_CC_WRAPPERS=yes to install cc/f77 links Add USE_CC_WRAPPERS option to control installation of cc/f77 symlinks. This will let packages other than GCC to install 'cc'. Signed-off-by: Manoj Gupta google.com> Signed-off-by: Sergei Trofimovich gentoo.org> Makefile | 3 +++ gcc-config | 9 +++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 61ba0d9..b143b3c 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,8 @@ # and keep only # ${CTARGET}-gcc USE_NATIVE_LINKS ?= yes +# Install cc/f77 symlinks to gcc/g77. +USE_CC_WRAPPERS ?= yes # Prepend toolchain prefix to 'gcc' in c89/c99 wrapeprs. # Should usually be '${CHOST}-'. @@ -41,6 +43,7 @@ clean: -e 's:@GENTOO_LIBDIR@:$(SUBLIBDIR):g' \ -e 's:@PV@:$(PV):g' \ -e 's:@USE_NATIVE_LINKS@:$(USE_NATIVE_LINKS):g' \ + -e 's:@USE_CC_WRAPPERS@:$(USE_CC_WRAPPERS):g' \ $< > $@ chmod a+rx $@ diff --git a/gcc-config b/gcc-config index d05dabe..dee6f98 100755 --- a/gcc-config +++ b/gcc-config @@ -289,8 +289,10 @@ update_wrappers() { local all_wrappers=( ${new_wrappers[@]/#/${CTARGET}-} ) if ! is_cross_compiler ; then all_wrappers+=( "${new_wrappers[@]}" ) - # There are a few fun extra progs which we have to handle #412319 - all_wrappers+=( cc:gcc f77:g77 ) + if [[ ${USE_CC_WRAPPERS} == "yes" ]]; then + # There are a few fun extra progs which we have to handle #412319 + all_wrappers+=( cc:gcc f77:g77 ) + fi fi # Then install wrappers for anything new to this profile. @@ -995,6 +997,7 @@ CC_COMP= ENV_D="${EROOT}etc/env.d" GCC_ENV_D="${ENV_D}/gcc" USE_NATIVE_LINKS="@USE_NATIVE_LINKS@" +USE_CC_WRAPPERS="@USE_CC_WRAPPERS@" for x in "$@" ; do case "${x}" in @@ -1050,6 +1053,8 @@ for x in "$@" ; do ;; --enable-native-links) USE_NATIVE_LINKS="yes" ;; --disable-native-links) USE_NATIVE_LINKS="no" ;; + --enable-cc-wrappers) USE_CC_WRAPPERS="yes" ;; + --disable-cc-wrappers) USE_CC_WRAPPERS="no" ;; -*) die "Invalid switch! Run ${argv0} without parameters for help." ;;