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 99C3F1382C5 for ; Sat, 20 Jun 2020 21:23:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6A7C0E0AE7; Sat, 20 Jun 2020 21:20:38 +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 4EB82E0AE7 for ; Sat, 20 Jun 2020 21:20:38 +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 C121F34F505 for ; Sat, 20 Jun 2020 21:20:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2098A2A4 for ; Sat, 20 Jun 2020 21:20:15 +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: <1592688009.3530072da1b5cc5b1ac8cf5f0bf86cddce3949b7.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gcc-config/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/gcc-config/gcc-config-9999.ebuild X-VCS-Directories: sys-devel/gcc-config/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 3530072da1b5cc5b1ac8cf5f0bf86cddce3949b7 X-VCS-Branch: master Date: Sat, 20 Jun 2020 21:20:15 +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: b7724e29-4827-4c93-b7b4-8b98797196f9 X-Archives-Hash: 1c60d4f6de3ad04447bd027565eb4ee2 commit: 3530072da1b5cc5b1ac8cf5f0bf86cddce3949b7 Author: Sergei Trofimovich gentoo org> AuthorDate: Sat Jun 20 21:19:45 2020 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Sat Jun 20 21:20:09 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3530072d sys-devel/gcc-config: add new TOOLCHAIN_PREFIX= to live ebuild Bug: https://bugs.gentoo.org/728722 Package-Manager: Portage-2.3.101, Repoman-2.3.22 Signed-off-by: Sergei Trofimovich gentoo.org> sys-devel/gcc-config/gcc-config-9999.ebuild | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/sys-devel/gcc-config/gcc-config-9999.ebuild b/sys-devel/gcc-config/gcc-config-9999.ebuild index e2c270403dd..f18c030a06c 100644 --- a/sys-devel/gcc-config/gcc-config-9999.ebuild +++ b/sys-devel/gcc-config/gcc-config-9999.ebuild @@ -21,19 +21,21 @@ IUSE="+native-symlinks" RDEPEND=">=sys-apps/gentoo-functions-0.10" -src_compile() { - emake CC="$(tc-getCC)" \ +_emake() { + emake \ PV="${PV}" \ SUBLIBDIR="$(get_libdir)" \ - USE_NATIVE_LINKS="$(usex native-symlinks)" + USE_NATIVE_LINKS="$(usex native-symlinks)" \ + TOOLCHAIN_PREFIX="${CHOST}-" \ + "$@" +} + +src_compile() { + _emake } src_install() { - emake \ - DESTDIR="${D}" \ - PV="${PV}" \ - SUBLIBDIR="$(get_libdir)" \ - install + _emake DESTDIR="${D}" install } pkg_postinst() {