This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: gcj on osx questions
- From: Andi Vajda <andi at osafoundation dot org>
- To: Mohan Embar <gnustuff at thisiscool dot com>
- Cc: java at gcc dot gnu dot org, jym at Cs dot Nott dot AC dot UK, Bryce McKinlay <mckinlay at redhat dot com>, Tom Tromey <tromey at redhat dot com>
- Date: Mon, 12 Dec 2005 19:52:47 -0800 (PST)
- Subject: Re: gcj on osx questions
- References: <C9GCMGMKE41XB002Y1V6CHFIHFA.439e4256@d9300>
- Reply-to: Andi Vajda <andi at osafoundation dot org>
On Mon, 12 Dec 2005, Mohan Embar wrote:
I'd like to get JNI libraries built against Apple's JDK to be loaded
by libgcj....
Ugh. Maybe I spoke too soon (new territory for me):
http://gcc.gnu.org/ml/java/2005-02/msg00067.html
Yes, you've got two hurdles to overcome:
- the mismatch in header files
- the mismatch in shared library kind, a bundle is not a dylib
It seems that on OS X, bundles are preferred when a library is dynamically
loaded and unloaded via the dlopen() APIs, and a dylib is preferred when
you're using the linker to link your code against it. A bundle cannot be
linked to with the linker, a dylib cannot be unloaded.
Andi..