The idea would be to be able to define a target C compiler with its custom flags to be used to compile a package. For instance, we could expect a file like /etc/portage/package.cc. C compilers I can think of are: tinycc, clang, openwatcom...
see package.env, that does what you need (just set CC=...)
Already exists. # cat > /etc/portage/env/clang << EOF CC=clang CXX=clang++ EOF # echo "app-arch/zopfli clang" >> /etc/portage/package.env Uses clang for zopfli compilation.
thx! I would prefer tinycc (tcc) :)