[Buildroot] [PATCH 6/6] remove superfluous OPTIMIZE and DEBUG config knobs

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Wed Oct 7 06:47:51 UTC 2009


On Tue, Oct 06, 2009 at 10:35:58PM +0200, Thomas Petazzoni wrote:
>Le Tue, 6 Oct 2009 20:49:39 +0200,
>Bernhard Reutner-Fischer <rep.dot.nop at gmail.com> a écrit :
>
>> The help-text of BR2_TARGET_OPTIMIZATION reads:
>> ---8<---
>> Optimizations to use when building for the target host.
>> ---8<---
>> 
>> If you want to build with -O0 -g3 -ggdb3 , then just set it to that.
>> Adding knobs for each -Ox and -gx is not userfriendly but odd, given
>> that there always was BR2_TARGET_OPTIMIZATION and that this is (or
>> should be anyway) used _everywhere_.
>
>Hum, you're right. But I think I would still like to keep a "enable
>debug" option that would :

I didn't remove that option, it's still there :)
Note, however, that previously we handled this via the STRIP setting
(none, strip, sstrip) automagically. The auto stuff needs such an
additional knob since it wouldn't be really clean to wire it up on
STRIP_none, agree 100%.
>
> * Compile with -g and keep the unstripped binary in the staging/
>   directory

the staging area should not be stripped anyway (unless a package does it
behind our back)


More information about the buildroot mailing list