This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building shared objects with gcj on osx



Andi> JNI libs built against the Apple JDK, ie with the Apple JDK jni.h, are
Andi> not compatible with gcj's jni.h.

Is there a bugzilla PR for this?

Not that I know of. The problem is not with gcj but with Apple, they changed some of the structures, sometimes in the middle.


Andi..

AndI> Also, for what it's worth, the
Andi> extension of JNI libs built with Apple's JDK are .jnilib and with gcj
Andi> are .dylib. What that means I don't know but I've not been able to get
Andi> libgcj's LoadLibrary API to work otherwise.

This extension is trivial to change -- see libjava/include/posix.h.
Could you try this out?

Tom



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]