[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Self compiling entire Bookworm DVD-1



On Wed, Apr 23, 2025 at 9:27 AM Nils <tuxifan@posteo.de> wrote:
>
> I'd like to compile all of DVD-1 myself but using `-Oz` to optimize for binary
> size rather than speed. How do I do that? Where do I start? I could only find
> infos on how to build DVD-1 yourself using existing binary packages...

For the kernel, there's CONFIG_CC_OPTIMIZE_FOR_SIZE option which
enlists `-Os`. If you want `-Oz`, I believe you need to add it to
KCFLAGS. Also see
<https://wiki.gentoo.org/wiki/Kernel/Optimization#Size>.

Jeff


Reply to: