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

Martin Simmons martin at lispworks.com
Thu May 14 10:46:45 UTC 2009


>>>>> On Thu, 14 May 2009 17:22:08 +0900, HUANG, Jianshi said:
> 
> Hello,
> 
> I'd like to suggest a change to %load-foreign-library in lispworks.
> 
> :dlopen-flags in fli:register-module is default to :local-lazy, which
> means setting RTLD_LOCAL || RTLD_LAZY flag when calling dlopen. This
> will not allow me to open shared libraries in sequential that depends
> on previously loaded ones.
> 
> So I suggest to set :dlopen-flags to :global-lazy as default in %
> load-foreign-library in cffi-lispworks.lisp. 

Which libraries are you loading?

A library should normally load its own dependencies (defined when it was
built).

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




More information about the cffi-devel mailing list