[oe] [PATCH] sane-toolchain-*: add -g to FULL_OPTIMIZATION to make -dbg packages more usefull

Tom Rini tom_rini at mentor.com
Tue Mar 1 18:29:34 UTC 2011


On 03/01/2011 11:10 AM, Phil Blundell wrote:
> On Tue, 2011-03-01 at 10:54 -0700, Tom Rini wrote:
>> That's why I'm asking for the -g part to be put into a variable so that
>> it can be overriden easily, in all cases, without needing to know the
>> special cases (ie glibc).
>
> Why is glibc special anyway (or, why is the optimization in a
> libc-specific conf file)?  It seems a bit bogus that the choice of your
> C library would be having such a global impact on the compiler flags for
> everything else.

There is some odd papering over that's going on to switch out a flag or 
two (and force -O2) for glibc (but not eglibc).  But my point is that 
today we have a few special case FULL_OPTIMIZATION_pn-'s and it'd be 
great to just not have to worry about that when setting the debug level 
we build with.

-- 
Tom Rini
Mentor Graphics Corporation




More information about the Openembedded-devel mailing list