Anuradha Ratnaweera wrote:
>On 12/13/05, Sahan Gamage <sahan@wso2.com> 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/
>
>
>
It works. Also there was an additional -O2 option manually put in the
configure.ac file. So when I removed that and set the environment
variable CFLAGS="-g" both the -O2 options were removed.
Thanks for the fix.
- Sahan
|