Running node-waf with --verbose shows it uses g++ with -g. It seems to be default. I can't find an obvious way to tell node-waf to build node.js extensions without debug symbols. Is there a straight forward way?
Edit: I know how to add compiler options. The question would be how to remove a certain option?
I found the solution myself. Not sure whether this is the best solution. Just overwriting the CXXFLAGS seems to do what I want.