On 12/13/05, Sahan Gamage <[EMAIL PROTECTED]> wrote:
>
> Is there any method for us to specify not to use optimizations in the
> build for the compiler. I can see there are two -O2 flags (which means
> optimizations) as well as -g and -g3 options. If we are using debug
> option we don't need optimizations since this would confuse the debgger.
> So if we have a method to say (such as ./configure --enable-debug) that
> would be very nice
I think configure is supposed to look for CFLAGS environment variable
and use it (or may be make is supposed to, not sure which one).
--enable-debug is more of a code level thing.
Try this:
CFLAGS="-g"
./configure
make
Anuradha
--
http://anuradha-ratnaweera.blogspot.com
http://www.linux.lk/~anuradha/