Martin Storsjö <[email protected]> writes: > On Mon, 25 Mar 2013, Niels Möller wrote: > >> They're archtecture dependent, depending mainly on GMP_NUMB_BITS on the >> target system. One option is to bundle mini-gmp, see >> http://gmplib.org:8000/gmp/file/mini-gmp. Or if one is prepared to limit >> the support to 32-bit and 64-bit limbs, one could generate tables for >> both sizes and include in the tarballs. > > Hmm, both solutions do sound pretty sensible - and thanks for the > pointer to mini-gmp. Hooking that up during the cross-builds I > mentioned should possibly be easier than building and installing a > full GMP, even if it isn't included in release tarballs.
I'm about to add mini-gmp now. Should help also for native compilation, in the case that -lgmp isn't enough for the linker to find a suitable gmp library. eccdata needs some tedious changes to work with mini-gmp, since it lacks gmp_f?printf. Those calls have to be replaced by a mix of regular printf and mpz_out_str. (Note that mini-gmp is LGPLv3, just like recent GMP, but that shouldn't matter for nettle users as long as mini-gmp is used only for the eccdata program). Regards, /Niels -- Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26. Internet email is subject to wholesale government surveillance. _______________________________________________ nettle-bugs mailing list [email protected] http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs
