From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-957257-garchives=archives.gentoo.org@lists.gentoo.org>
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 E7C5A139694
	for <garchives@archives.gentoo.org>; Fri, 23 Jun 2017 19:39:23 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 250EF23402E;
	Fri, 23 Jun 2017 19:39:23 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id F3DF023402E
	for <gentoo-commits@lists.gentoo.org>; Fri, 23 Jun 2017 19:39: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 C3E8A341724
	for <gentoo-commits@lists.gentoo.org>; Fri, 23 Jun 2017 19:39:21 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 37EF97480
	for <gentoo-commits@lists.gentoo.org>; Fri, 23 Jun 2017 19:39:20 +0000 (UTC)
From: "Daniel Campbell" <zlg@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Daniel Campbell" <zlg@gentoo.org>
Message-ID: <1498246733.afde8cea96633a7b9a9c95fa444b7277f04ab11b.zlg@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/astyle/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-util/astyle/astyle-3.0.1.ebuild dev-util/astyle/astyle-3.0.ebuild
X-VCS-Directories: dev-util/astyle/
X-VCS-Committer: zlg
X-VCS-Committer-Name: Daniel Campbell
X-VCS-Revision: afde8cea96633a7b9a9c95fa444b7277f04ab11b
X-VCS-Branch: master
Date: Fri, 23 Jun 2017 19:39:20 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 006be973-5f79-490d-bcb6-65d502276b47
X-Archives-Hash: c46c6a7bf89c62297916bae5de684bdf

commit:     afde8cea96633a7b9a9c95fa444b7277f04ab11b
Author:     Daniel Campbell <zlg <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 23 19:38:09 2017 +0000
Commit:     Daniel Campbell <zlg <AT> gentoo <DOT> org>
CommitDate: Fri Jun 23 19:38:53 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afde8cea

dev-util/astyle: Respect CXX wrt bug 622068

Thanks to mgorny for finding the issue.

Gentoo-Bug: 622068
Gentoo-Bug-URL: https://bugs.gentoo.org/622068
Package-Manager: Portage-2.3.6, Repoman-2.3.2

 dev-util/astyle/astyle-3.0.1.ebuild | 3 ++-
 dev-util/astyle/astyle-3.0.ebuild   | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dev-util/astyle/astyle-3.0.1.ebuild b/dev-util/astyle/astyle-3.0.1.ebuild
index e32b6189e88..91f94429fc5 100644
--- a/dev-util/astyle/astyle-3.0.1.ebuild
+++ b/dev-util/astyle/astyle-3.0.1.ebuild
@@ -38,7 +38,8 @@ src_configure() {
 }
 
 src_compile() {
-	emake -f ../build/gcc/Makefile -C src \
+	# ../build/clang/Makefile is identical except for CXX line.
+	emake CXX="$(tc-getCXX)" -f ../build/gcc/Makefile -C src \
 		${PN} \
 		shared \
 		$(usev java) \

diff --git a/dev-util/astyle/astyle-3.0.ebuild b/dev-util/astyle/astyle-3.0.ebuild
index 4392d25b3df..85544bdc8bb 100644
--- a/dev-util/astyle/astyle-3.0.ebuild
+++ b/dev-util/astyle/astyle-3.0.ebuild
@@ -38,7 +38,8 @@ src_configure() {
 }
 
 src_compile() {
-	emake -f ../build/gcc/Makefile -C src \
+	# ../build/clang/Makefile is identical except for CXX line.
+	emake CXX="$(tc-getCXX)" -f ../build/gcc/Makefile -C src \
 		${PN} \
 		shared \
 		$(usev java) \