t...@gmplib.org (Torbjörn Granlund) writes:

>   If so, is there another easy with debug info, without knowing in
>   advance what compiler flags configure would have autodetected?
>   
> Cut and paste?

That's what I usually do. Setting CFLAGS really means "I know this
better than configure", and then configure obeys without questioning.
One could have some user option EXTRA_CFLAGS or the like but I'm not
sure that's really worth the effort.

It might also work to set CC='gcc -g', but I haven't tested.

As for -g, I'm not sure why it is disabled by default in gmp builds. I
think GNU standard is to enable -g by default when building with gcc
(which has always had reasonable support for generating useful debug
info also when optimizing).

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.
_______________________________________________
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs

Reply via email to