Do not invoke the compiler with -O0. Even though we build kakoune in its "debug" mode to generate debug symbols, we do not want its build infrastructure to override the compiler flags set by dpkg-buildpackage in accordance to way the Debian package is being built. . Disabling the compiler optimizations also has the unfortunate side effect of disabling the build harderning, so we really do not want it to happen.