Saladin Mundi wrote:
>> The last time I built ruby (MingW, 1.9.0-4) gcc got the options "-g -O2"
>> without having to do anything special, just "./configure; make"
> 
> I also use MingGW.
> Do I have to put -g 02 in the config "string" ?
> 
> (Now I only use:
> /configure --with-baseruby=/home/MYUSERNAME/ruby-1.8.6/bin/ruby.exe 
> --prefix=/rubytest --program-suffix=test
> )
> 
> How would it look like with the gnu debugger?

Typically you specify additional/overriding gcc flags with the CFLAGS 
environment variable, so you could say

export CFLAGS=-g
./configure ...whatever...

I'm surprised that Alex got "-g -O2" automatically. I would not expect 
Ruby to compile with debugging information by default.
-- 
Posted via http://www.ruby-forum.com/.