There are some packages which lack an upstream build system or the build system is unusable, thus ebuilds call the compiler directly in src_compile(). They use tc-get* from toolchain-funcs to get compiler name, and call it passing more or less appropriate flags in more or less appropriate order. I think it would be useful though to define a common functions to call the compiler from within ebuilds to avoid the differences in accepted make.conf *FLAGS, flag passing order and overall syntax. The toolchain-funcs eclass seems the most appropriate one for that.
Please reopen this bug report after: 1) adding examples of ebuilds that do this "manually". 2) providing an eclass patch that the ebuilds should call. 3) generating some discussion on the gentoo-dev@ mailing list about your eclass patch.
The discussion has taken place and I've decided to withdraw my ideas in favor of using 'emake'. This bug and the list I stated [1] might be used however to transform existing CC-callers to 'emake' solution. [1] http://archives.gentoo.org/gentoo-dev/msg_3d5d6138926c7611c59c77c8a10d0d26.xml
Here come the ninjas.
Oh, no ninjas needed....