[cffi-devel] Set :dlopen-flags to :global-lazy in %load-foreign-library in lispworks?

Martin Simmons martin at lispworks.com
Fri May 15 11:28:00 UTC 2009


>>>>> On Fri, 15 May 2009 09:01:22 +0900, HUANG, Jianshi said:
> 
> Hi Martin,
> 
> On Thu, 14 May 2009 11:46:45 +0100
> Martin Simmons <martin at lispworks.com> wrote:
> 
> > Which libraries are you loading?
> > 
> > A library should normally load its own dependencies (defined when it was
> > built).
> 
> Usually that's the case, but I'm using Intel MKL, which asks you to
> choose a combination of different libraries. 

Ah, I see.

Another way around this problem is to make a dummy library (using ld) that
references the others and load the dummy library first.

I don't like the idea of setting :dlopen-flags to :global-lazy because it
breaks situations where the same symbol is defined in more than one library.

-- 
Martin Simmons
LispWorks Ltd
http://www.lispworks.com/




More information about the cffi-devel mailing list