dev-ada/gnatmem: for C use the related gcc compiler

Package-Manager: Portage-2.3.40, Repoman-2.3.9
This commit is contained in:
Tupone Alfredo
2018-07-21 22:34:29 +02:00
parent 3e7c34aa13
commit eebcbf9462

View File

@@ -33,7 +33,14 @@ src_prepare() {
}
src_compile() {
gprbuild -v -Pgnatmem.gpr -j$(makeopts_jobs) \
if use gnat_2016; then
GCC_PV=4.9.0
elif use gnat_2017; then
GCC_PV=6.3.0
else
GCC_PV=7.3.1
fi
gprbuild -v -Pgnatmem.gpr -j$(makeopts_jobs) -XCC=gcc-${GCC_PV} \
-cargs:C ${CFLAGS} -cargs:Ada ${ADAFLAGS}
}