The devmanual states: https://devmanual.gentoo.org/general-concepts/dependencies/index.html It is not necessary, nor advisable, to specify dependencies upon toolchain packages like gcc, libc and so on, except where specific versions or packages (for example, glibc over uclibc) are required. In other words, it is safe to assume that the user has a C++ compiler installed. You should not DEPEND on it explicitly.
You are the boss. However before I do that, please explain me how can we make sure that c++ is available while gcc has USE flag that is controllable by user.
(Also please change ${EROOT} to ${EPREFIX}/ multilib_src_configure(). ${EROOT} is disallowed in src_* phases.)
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7022f02a6df878d478ffcd9dc9a56e0c6ecf643a You need / after ${EPREFIX}
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82252446f3c8d7df35747c5e55e07afc5f83adff About sys-devel/gcc[cxx], see: https://gitweb.gentoo.org/repo/gentoo/historical.git/commit/?id=a8a4a97d3c733f6156f8ca7d0e471f2902ce96d8
(In reply to Alon Bar-Lev from comment #1) > You are the boss. > However before I do that, please explain me how can we make sure that c++ is > available while gcc has USE flag that is controllable by user. You don't. Just as you don't verify that the value of CXX is correct. The build system does that, and outputs a clear error if user did something silly.