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

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Tue Oct 6 18:49:39 UTC 2009


On Tue, Oct 06, 2009 at 08:41:00PM +0200, Peter Korsgaard wrote:
>>>>>> "Bernhard" == Bernhard Reutner-Fischer <rep.dot.nop at gmail.com> writes:
>
> Bernhard> There is BR2_TARGET_OPTIMIZATION that is saved in the .config
>
>I'm not sure. I think the existing config is pretty user friendly. If we
>could do this, then we should probably rename it to
>BR2_TARGET_EXTRA_CFLAGS or something like that so it's clear that you
>should use it for all extra flags.

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_.



More information about the buildroot mailing list