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

Eric Hanchrow offby1 at blarg.net
Sun May 9 03:31:19 CEST 2004

>>>>> "Kevin" == Kevin Ryde <user42 at zip.com.au> writes:

    Kevin> These days mingw apparently has an auto-import scheme for
    Kevin> data, which might be enough.  Maybe cygwin has something
    Kevin> similar.  The way gmp is setup pre-dates that, it goes back
    Kevin> to original libtool recommendations for dlls.

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.

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?

But users will not now with glad cries glom on to a language that
gives them no more than what Scheme or Pascal gave them.

        -- Guy Steele, http://www.sun.com/research/jtech/pubs/98-oopsla-growing.ps

More information about the gmp-discuss mailing list