It would be nice if the gcc ebuilds could automatically install compiler profiles for, e.g., forced --as-needed / --no-add-needed Obviously this is nothing for Joe Average User, so it should be controlled by a flag and off by default. It certainly beats creating the profiles by hand after every gcc upgrade, though...
the only thing a profile is is a custom spec file. i dont want to explode the profile list for arbitrary flags, so simply create your own: - `gcc -dumpspecs > f` - add --as-needed to link_command - export GCC_SPECS to $PWD/f if you want to automate things, then use the per-package bashrc