Using installed libffi

8 views
Skip to first unread message

David Hoyt

unread,
May 15, 2013, 2:45:36 AM5/15/13
to jna-...@googlegroups.com
Is it possible to use an already built and installed libffi if it's available? I've already built libffi independently (both shared and static are available) and if you properly use package config, you can pick it up and use that instead of the bundled version. Is there a reason there's a bundled version? Does it diverge from standard libffi? If so, why?

Timothy Wall

unread,
May 15, 2013, 8:19:22 AM5/15/13
to jna-...@googlegroups.com
It sometimes diverges. There *is* an option you can pass into the build to use the system-installed version, though (one of the linux distros asked for it). I can't recall offhand the exact semantics, though it should be easy enough to look up in build.xml or the Makefile.


On May 15, 2013, at 2:45 AM, David Hoyt wrote:

> Is it possible to use an already built and installed libffi if it's available? I've already built libffi independently (both shared and static are available) and if you properly use package config, you can pick it up and use that instead of the bundled version. Is there a reason there's a bundled version? Does it diverge from standard libffi? If so, why?
>
> --
> You received this message because you are subscribed to the Google Groups "Java Native Access" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jna-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

David Hoyt

unread,
May 16, 2013, 12:54:58 PM5/16/13
to jna-...@googlegroups.com
In what ways does it sometimes diverge? At this point would you consider libffi pretty stable?

Timothy Wall

unread,
May 16, 2013, 1:33:12 PM5/16/13
to jna-...@googlegroups.com
I recently synched to libffi git repo, and found that it broke some w32 stdcall stuff. So the version on JNA has a fix until the patch works its way back into libffi.

For most purposes, the standard library (on linux distros) should be perfectly fine. All the important divergences to date have been on windows.
Reply all
Reply to author
Forward
0 new messages