What would be needed to allow GMP to build both a static library and a DLL on Cygwin?

Kevin Ryde user42 at zip.com.au
Sat May 15 01:46:35 CEST 2004


Eric Hanchrow <offby1 at blarg.net> writes:
>
> I suspected as much; I also suspect that libtool no longer requires
> import directives -- I build my own library (static, shared, or both)
> with libtool, and it works fine on Cygwin and I haven't had to use
> __declspec or anything like it.

Check the global constants gmp_version and mp_bits_per_limb.  It's
normally hard to do much wrong to functions, but variables are the
tricky bit.

(The asm functions may be in need of some type directives, so don't
worry if they bomb.)

> If I rip out the import directives, and it appears to work on Cygwin
> and Linux (i.e., if the self-tests pass) would the maintainers likely
> check such a change in?

I don't mind demanding a newish mingw/cygwin if it's a simplification,
I assume most users of those will stay reasonably up to date anyway.

But check what works with ms and borland c.  Those are obviously
non-free but maybe they can be kept working.


More information about the gmp-discuss mailing list