compiling with -02

I am making a program that uses the extern variable errno.
It worked just fine until I started compiling with the configure script,
the problem is that it compiles the program with the -O2 flag and 
since, errno is not working right specialy with functions from libm,
for example pow(-2,.5) does not set's errno.

What can I do? 
If it's not posible to fix this from the code can I add something to the script so -O2 wont be added to the CFLAGS.

Matias Mutchinick

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]