[PATCH v2] build system: allow users to select the optimization mode
Isaac Dunham
ibid.ag at gmail.com
Wed Apr 15 14:47:33 UTC 2015
On Wed, Apr 15, 2015 at 01:43:01PM +0200, Bartosz Golaszewski wrote:
> In some scenarios busybox performance may be prefered over its
> small size.
>
> Allow users to select the compiler optimization level by adding
> appropriate config options.
I suspect that anyone who does know that they want to optimize for
something other than size will at least know the optimization value to pass
(whether they want -Os, -O0, -Og, -O1, -O2, -O3, or some other value).
And if you know that, the obvious approach is:
make menuconfig
=> Busybox Settings
=> Build Options
=> Additional CFLAGS
This is obvious, and as discoverable as you can get.
BTW: -Og is a pretty recent addition to GCC, so there will be toolchains
where that's inappropriate. I think it was implemented after Squeeze was
released...
Thanks,
Isaac Dunham
More information about the busybox
mailing list