GMP 6.1.2: 32-bit ARM build failure on 64-bit hardware with CFLAGS=-g
Niels Möller
nisse at lysator.liu.se
Wed Jan 24 18:09:54 UTC 2018
tg at 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.
More information about the gmp-bugs
mailing list