patch applied (packages/integer-gmp): Patch GMP to always use the GHC allocation functions

Ian Lynagh igloo at earth.li
Tue Sep 22 20:50:52 EDT 2009


On Sat, Sep 19, 2009 at 09:51:49PM +0100, Duncan Coutts wrote:
> 
> However, it still does not make any sense because GHCi itself is linked
> against GMP (because GHCi depends on base which depends on integer-gmp)
> so it already calls mp_set_memory_functions(), so it should work even if
> GHCi does not call the constructor when loading its copy of the
> integer-gmp. The only way I can imagine it going wrong is if somehow
> they are using two different instances of GMP, eg one statically linked
> and one dynamically.

We don't use a dynamic GMP when we build GMP ourselves, so we get 2
static GMPs: one linked into ghci, and one loaded by it.


Thanks
Ian



More information about the Cvs-libraries mailing list