Currently, CC and CXX are not set in the portage environment to $(tc-getCC) and $(tc-getCXX) as given by toolchain-funcs.eclass. For build systems which properly respect these variables and inherit their values from the environment that means have to do something like emake CC=$(tc-getCC) CXX=$(tc-getCXX) .... in src_compile(), src_install(), src_test(), ie wherever make is called. Looking through the tree, on can see hundreds of such examples. We should import the toolchain-funcs.eclass code that sets those variables into portage and automatically set CC=$(tc-getCC) CXX=$(tc-getCXX) as the default which can be overrided if need be. This will lead to cleaner ebuilds and avoid QA issues where cc, gcc, g++ are all called directly. This enhancement was inspired by bug #408481.
Probably is a good idea set AR AS CPP LD and so on.
i don't think this belongs in PMS
(In reply to comment #2) > i don't think this belongs in PMS What would be the alternative then to get them automatically exported? Thanks :)
(In reply to comment #2) > i don't think this belongs in PMS Much like CFLAGS and similar?
*** This bug has been marked as a duplicate of bug 341761 ***