3 messages in net.java.dev.jna.usersRe: [jna-users] loading dynamic libra...
FromSent OnAttachments
Filippo CaroneDec 12, 2008 2:36 pm.patch
Timothy WallDec 13, 2008 6:20 am 
Filippo CaroneDec 14, 2008 7:37 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] loading dynamic libraries in the global namespaceActions...
From:Filippo Carone (fili@carone.org)
Date:Dec 14, 2008 7:37:35 am
List:net.java.dev.jna.users

Timothy Wall ha scritto:

OSX/BSD has RTLD_GLOBAL as the default, linux is undefined.

Hi Timothy, the point of the patch is to let users to choose if load the native library with RTLD_GLOBAL flag or not (I've checked the dlopen manpage on linux and it states RTLD_LOCAL is the default). Since some application may need to load libraries with RTLD_GLOBAL, having the additional OPTION_DLOPEN_GLOBAL could be useful.

In my particular case, the Videolan java binding, I do need to load libvlc with the RTLD_GLOBAL flag, otherwise plugins won't work.

Please consider to apply the patch, since it doesn't change the default jna behaviour and only gives the user an additional option.

Cheers, Filippo