[PATCH] build system: allow users to select the optimization level
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Wed Apr 15 10:45:15 UTC 2015
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
HTH,
More information about the busybox
mailing list