diff options
-rw-r--r-- | dev-lang/gnat-gpl/gnat-gpl-2016.ebuild | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dev-lang/gnat-gpl/gnat-gpl-2016.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2016.ebuild index 3319b3a8b9a4..5f8e52f2347e 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:" |