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

Khem Raj raj.khem at gmail.com
Tue Mar 1 19:14:59 UTC 2011


On Tue, Mar 1, 2011 at 10:29 AM, Tom Rini <tom_rini at mentor.com> wrote:
> 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.
>

May be debugability can be expressed via another variable say
DEBUG_FLAGS or somesuch which can then we appended to global CFLAGS

> --
> Tom Rini
> Mentor Graphics Corporation
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>




More information about the Openembedded-devel mailing list