commit:     63927e234ac4cb59f931a8c63f4a386eae7cecb1
Author:     Tupone Alfredo <tupone <AT> gentoo <DOT> org>
AuthorDate: Wed May 24 20:50:02 2017 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Wed May 24 20:50:02 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63927e23

dev-lang/gnat-gpl: Fix build when current compiler is gcc-6

Package-Manager: Portage-2.3.5, Repoman-2.3.1

 dev-lang/gnat-gpl/gnat-gpl-2016.ebuild | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dev-lang/gnat-gpl/gnat-gpl-2016.ebuild 
b/dev-lang/gnat-gpl/gnat-gpl-2016.ebuild
index 3319b3a8b9a..5f8e52f2347 100644
--- a/dev-lang/gnat-gpl/gnat-gpl-2016.ebuild
+++ b/dev-lang/gnat-gpl/gnat-gpl-2016.ebuild
@@ -61,12 +61,14 @@ pkg_setup() {
        fi
        CC=${GCC}
        local base=$(basename ${GCC})
+       CXX="${base/gcc/g++}"
        GNATMAKE="${base/gcc/gnatmake}"
        GNATBIND="${base/gcc/gnatbind}"
        if [[ ${base} != ${GCC} ]] ; then
                local path=$(dirname ${GCC})
                GNATMAKE="${path}/${GNATMAKE}"
                GNATBIND="${path}/${GNATBIND}"
+               CXX="${path}/${CXX}"
        fi
        if ! use bootstrap && [[ -z "$(type ${GNATMAKE} 2>/dev/null)" ]] ; then
                eerror "You need a gcc compiler that provides the Ada Compiler:"

Reply via email to