Configuring for debug info
Niels Möller
nisse at lysator.liu.se
Tue Nov 18 20:43:56 CET 2003
What's the recommended way of configuring gmp to get debug information
in the files? I'm using a plain gcc-3.2.2, running on an x86 linux
box. If I configure with
./configure --enable-maintainer-mode --enable-assert
I get CFLAGS set to -O2 -fomit-frame-pointer -mcpu=athlon
-march=athlon, no -g in sight.
I've also tried setting CFLAGS=-g on the ./configure command line, but
that replaces the automatic flags completely. Explicitly writing
./configure --enable-maintainer-mode --enable-assert \
CFLAGS="-g -O2 -fomit-frame-pointer -mcpu=athlon -march=athlon"
seems to work but is kind of clumsy, as gmp knows the cpu flags much
better than I do.
Regards,
/Niels
More information about the gmp-devel
mailing list