I already reported this upstream, and there's an easy solution proposed, but let's keep track of it here too.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b6fa23e6ed561e1248bf2928202ba5966944388 commit 0b6fa23e6ed561e1248bf2928202ba5966944388 Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2024-02-05 15:00:39 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2024-02-05 15:13:45 +0000 sci-mathematics/gap: respect CC and CXX in the "gac" compiler Closes: https://bugs.gentoo.org/922835 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> .../gap/files/gap-4.12.2-cc-and-cxx-for-gac.patch | 42 ++++++++++++++++++++++ .../{gap-4.12.2-r3.ebuild => gap-4.12.2-r4.ebuild} | 2 ++ 2 files changed, 44 insertions(+)