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: jni test case question/ linking


>>>>> "Andreas" == Andreas Tobler <toa at pop dot agri dot 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


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