summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTupone Alfredo <tupone@gentoo.org>2019-09-17 09:33:57 +0200
committerTupone Alfredo <tupone@gentoo.org>2019-09-17 09:33:57 +0200
commit9ed226fa5c2394948ac9b3c6518a470f43c42814 (patch)
treea561ae720c418f4b6eb9cfbe17dd536211edda89 /eclass/ada.eclass
parentdev-ada/gnatsymbolize: simplify using ada eclass (diff)
downloadgentoo-9ed226fa5c2394948ac9b3c6518a470f43c42814.tar.gz
gentoo-9ed226fa5c2394948ac9b3c6518a470f43c42814.tar.bz2
gentoo-9ed226fa5c2394948ac9b3c6518a470f43c42814.zip
ada.eclass: add export of GNAT
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'eclass/ada.eclass')
-rw-r--r--eclass/ada.eclass8
1 files changed, 6 insertions, 2 deletions
diff --git a/eclass/ada.eclass b/eclass/ada.eclass
index aae30562074b..763ce92056e0 100644
--- a/eclass/ada.eclass
+++ b/eclass/ada.eclass
@@ -222,6 +222,10 @@ ada_export() {
export GCC_PV=${gcc_pv}
debug-print "${FUNCNAME}: GCC_PV = ${GCC_PV}"
;;
+ GNAT)
+ export GNAT=${EPREFIX}/usr/bin/gnat-${gcc_pv}
+ debug-print "${FUNCNAME}: GNAT = ${GNAT}"
+ ;;
GNATBIND)
export GNATBIND=${EPREFIX}/usr/bin/gnatbind-${gcc_pv}
debug-print "${FUNCNAME}: GNATBIND = ${GNATBIND}"
@@ -407,7 +411,7 @@ ada_setup() {
if [[ ${#_ADA_SUPPORTED_IMPLS[@]} -eq 1 ]]; then
if use "ada_target_${_ADA_SUPPORTED_IMPLS[0]}"; then
# Only one supported implementation, enable it explicitly
- ada_export "${_ADA_SUPPORTED_IMPLS[0]}" EADA GCC_PV
+ ada_export "${_ADA_SUPPORTED_IMPLS[0]}" EADA GCC_PV GNAT
ada_wrapper_setup
fi
else
@@ -423,7 +427,7 @@ ada_setup() {
die "More than one implementation in ADA_TARGET."
fi
- ada_export "${impl}" EADA GCC GCC_PV GNATMAKE
+ ada_export "${impl}" EADA GCC_PV GNAT
ada_wrapper_setup
fi
done