I wonder why amd64 is distinguished to have -O2 in COPTFLAGS even when DEBUG is defined. For all other archs it's -O for that case. Perhaps, this was discussed / explained in the past, but I would appreciate it being said again (or even written as a comment in kern.pre.mk). Thank you! -- Andriy Gapon