The package respect CC only at compile time.
It does not respect CC in the 'test' during the configure phase:
From the build log:
checking for gcc... gcc
checking whether the C compiler (gcc -march=native -O2 -g0 -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu) works... yes
checking whether the C compiler (gcc -march=native -O2 -g0 -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu) is a cross-compiler... no
I've already fixed this bug in anther bug, please have a look at bug 336818 (updated it now to fix also bug 367185)
Thanks, fixed in CVS.
Please note that CC was actually respected in the compile phase, but the new ebuild will not show it during configure too.
+ 23 Mar 2014; Michael Palimaka <firstname.lastname@example.org> +asapm-3.1-r1.ebuild,
+ Revision bump migrating to EAPI 5. Add missing dependency. Remove transitive
+ dependency. Remove jpeg USE flag that did nothing. Update HOMEPAGE wrt bug
+ #367185. Respect LDFLAGS wrt bug #336818. Fully respect CC wrt bug #444944.