0

I tried:

CFLAGS="-g -O0" ./configure

But it's still using the default flags -g -O3 when make.

Any way to work around?

Elf Sternberg
  • 16,129
  • 6
  • 60
  • 68
new_perl
  • 7,345
  • 11
  • 42
  • 72

1 Answers1

1

./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.

Elf Sternberg
  • 16,129
  • 6
  • 60
  • 68
  • I'm interested how you find the `--debug` option by `find`? – new_perl Aug 03 '11 at 01:03
  • I read the source code to wscript. It tells you where O3 is set. O0 is set above that. Once I knew that, a little python familiarity led me to the opt definitions for debug, and there it was. But `./configure --help` will tell you all the options, and the wscript source is fairly readable. – Elf Sternberg Aug 03 '11 at 02:52