"makeoptions COPTFLAGS=-O0" in kernel config is not used for building kernel modules. It should be because modules are part of kernel too.
For bugs matching the following conditions: - Status == In Progress - Assignee == "bugs@FreeBSD.org" - Last Modified Year <= 2017 Do - Set Status to "Open"