Re: Self compiling entire Bookworm DVD-1
On Wed, 23 Apr 2025 10:58:52 +0000
Nils <tuxifan@posteo.de> wrote:
> Hey!
>
> 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...
>
How else can you do it? A working compiler is binary code, as are its
auxiliary packages. To compile anything you must use pre-compiled
binaries.
It's a bootstrap job. You start by using a running system to compile a
compiler and the other bits it needs from source code, and eventually, a
kernel. You finally reach a position where you can switch to using
your compiler and your new kernel to recompile what you've done so far,
and then you can go on with all newly-compiled binaries and build a
complete system. It's not a trivial job.
See here for details of such a process:
https://www.linuxfromscratch.org/
This may also help:
https://jamesbrind.uk/posts/linux-from-scratch/
I did this a couple of times soon after the project began, and learned
quite a lot. The automation systems were just being talked about then,
and of course my computer was quite slow. A couple of scripts that I
still use date from that time.
--
Joe
Reply to: