On Fri, 03 Jul 2020 22:35:30 +0000 Xianwen Chen (陈贤文) <x...@chen.ac> wrote:
> In the Makefile, it is written that > > cc = g++ > > I would like to use sed to patch it so that it ebuild knows which g++ to > use. For example, depending on whether ccache is set, ebuild shall know > whether to use ccache. Rather than patch it, start the build with: emake cc="$(tc-getCXX)" You'll probably need to do more to respect CXXFLAGS and such though. -- James Le Cuirot (chewi) Gentoo Linux Developer
pgpUk0gHCJfvA.pgp
Description: OpenPGP digital signature