Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 371421

Summary: sys-devel/gcc: provide "forced" compiler profiles (useflag?)
Product: Gentoo Linux Reporter: Andreas K. Hüttel <dilfridge>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED WONTFIX    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://blog.flameeyes.eu/2008/11/14/problems-and-mitigation-strategies-for-as-needed
Whiteboard:
Package list:
Runtime testing required: ---

Description Andreas K. Hüttel archtester gentoo-dev 2011-06-13 14:29:00 UTC
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...
Comment 1 SpanKY gentoo-dev 2011-06-13 20:03:47 UTC
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