Re: ffi.load and clib_extname

  • From: Mike Pall <mike-1403@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Thu, 6 Mar 2014 21:36:14 +0100

Daurnimator wrote:
> To get a handle to the always-in-memory shared object, the standard
> mechanism is to call:`dlopen("linux-vdso.so.1",RTLD_LAZY)`
> However; clib_extname prepends 'lib' if a '/' is not present is the first
> argument.
> 
> Is there a way around this in the LuaJIT ffi?

Given that it needs special flags, anyway, why not call dlopen
directly via the FFI?

--Mike

Other related posts: