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) \

Reply via email to