Hi,
Here is my beef with rbuild. I can't fix most of these as I don't have the skills/knowledge of rbuild.
1) Project link flags are applied at the end of the command line...this makes -Wl optimization flags not work. 2) DBG = 0 and GCC 4 creates a load of new warnings that weren't there before. For example, I can't build ntoskrnl anymore. This is because it's detecting "uninitialized variables" which are actually being initalized by the macros themselves (see mm/pe.c and elf.inc.h). This did not happen before rbuild. 3) Strip isn't being executed for dbg = 0 anymore... I can add it but I have no idea how to make it dbg = 0 only.
Not sure: 4) Is the OPTIMIZED envirovar still taken into account? I didn't seem to see so.
Best regards, Alex Ionescu