I tried:
CFLAGS="-g -O0" ./configure
But it's still using the default flags -g -O3
when开发者_运维技巧 make
.
Any way to work around?
./configure --debug
That automatically builds with -g -O0
Or you can edit wscript
in the root directory of the node source tree, search and edit the line with "O3" in it, and re-run configure. That will build your source tree with the arguments you want, but without -Wall -Wextra -DDEBUG
. Just in case that's what you want.
p.s. I found this out by: find . -type f -print0 | xargs -0 grep "O3"
and running a couple of simple experiments.
精彩评论