1 |
commit: 63927e234ac4cb59f931a8c63f4a386eae7cecb1 |
2 |
Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 24 20:50:02 2017 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 24 20:50:02 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63927e23 |
7 |
|
8 |
dev-lang/gnat-gpl: Fix build when current compiler is gcc-6 |
9 |
|
10 |
Package-Manager: Portage-2.3.5, Repoman-2.3.1 |
11 |
|
12 |
dev-lang/gnat-gpl/gnat-gpl-2016.ebuild | 2 ++ |
13 |
1 file changed, 2 insertions(+) |
14 |
|
15 |
diff --git a/dev-lang/gnat-gpl/gnat-gpl-2016.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2016.ebuild |
16 |
index 3319b3a8b9a..5f8e52f2347 100644 |
17 |
--- a/dev-lang/gnat-gpl/gnat-gpl-2016.ebuild |
18 |
+++ b/dev-lang/gnat-gpl/gnat-gpl-2016.ebuild |
19 |
@@ -61,12 +61,14 @@ pkg_setup() { |
20 |
fi |
21 |
CC=${GCC} |
22 |
local base=$(basename ${GCC}) |
23 |
+ CXX="${base/gcc/g++}" |
24 |
GNATMAKE="${base/gcc/gnatmake}" |
25 |
GNATBIND="${base/gcc/gnatbind}" |
26 |
if [[ ${base} != ${GCC} ]] ; then |
27 |
local path=$(dirname ${GCC}) |
28 |
GNATMAKE="${path}/${GNATMAKE}" |
29 |
GNATBIND="${path}/${GNATBIND}" |
30 |
+ CXX="${path}/${CXX}" |
31 |
fi |
32 |
if ! use bootstrap && [[ -z "$(type ${GNATMAKE} 2>/dev/null)" ]] ; then |
33 |
eerror "You need a gcc compiler that provides the Ada Compiler:" |