jni test case question/ linking

Tom Tromey tromey@redhat.com
Wed Feb 19 18:42:00 GMT 2003


>>>>> "Andreas" == Andreas Tobler <toa@pop.agri.ch> writes:

Andreas> I run this on darwin, where .so = .dylib.
Andreas> The point is, do I have to add the ability to load .dylib
Andreas> files in java?

As you found, there are 2 things to change: the platform defines like
_Jv_platform_solib_suffix, and libltdl.  This particular bit of
information is duplicated (and libltdl always looks for the .la file,
too).

If Darwin is different enough, we could consider it a new OS flavor.
We could have a `darwin.h', to which target.h would point; it could
start `#include "posix.h"'.  Or we could just put a conditional in
posix.h; for a single oddity like this I'm not too concerned about
using a platform define.

Tom



More information about the Java mailing list