[PATCH] build system: allow users to select the optimization level
Bartosz Gołaszewski
bartekgola at gmail.com
Wed Apr 15 11:14:47 UTC 2015
2015-04-15 12:45 GMT+02:00 Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>:
> On 15 April 2015 at 12:36, Jody Bruchon <jody at jodybruchon.com> wrote:
>> On 4/15/2015 6:15 AM, Bartosz Golaszewski wrote:
>>>
>>> Allow users to select the compiler optimization level by adding
>>> appropriate config options.
>>
>> I would suggest dropping -O0 and -O1 and replacing them with -Og. This
>> optimization is equal to -O2 but turns off *only* optimizations that cause
>> problems with debugging.
>
> I don't think such config option make sense.
> The CONFIG_EXTRY_CFLAGS passed to make do override the default
> optimization-level anyway, so just:
>
> make V=1 CONFIG_EXTRA_CFLAGS="-Og -g3 -ggdb3 -gdwarf-5"
>
> or put these into your .config
Not everyone wanting to compile busybox will want/know how to play
with various optimization flags. I think we should at least have the
choice between "Optimize for speed" and "Optimize for size".
I'll prepare a version 2 of the patch to show what I mean.
Best regards,
Bartosz Golaszewski
More information about the busybox
mailing list