Hello!
> > The idea is to use per-library flags and avoid compilation from one
> > directory to another.
>
> That sounds good to me, but I think it is better to use
> per-executable flags and to remove the directories for compilation
> only, such as e2fs_stage1_5. How's that?
It is not hard.
I actually wanted to avoid too radical changes, but it's good that you
give this idea.
It will also prevent *asm.o from linking twice.
Considering what GRUB will eventually be, it is Ok to put all this
stuff (stage2 and its mutated forms) together. I can imagine appearing
things very different from stage2, so the structure will be (some day in
the future):
1) stage1
2) stage2 + stage1_5 + /sbin/grub (dangerous and recommended for debugging
only)
3) safer lilo-style installer
4) nice GUI wrapper for 3)
5) documentation
You see, stage1_5 and /sbin/grub naturally belong to the stage2 directory.
Expect the patch by the end of the week.
Pavel Roskin