This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: jni test case question/ linking
- From: Tom Tromey <tromey at redhat dot com>
- To: "Andreas Tobler" <toa at pop dot agri dot ch>
- Cc: java at gcc dot gnu dot org
- Date: 19 Feb 2003 11:33:45 -0700
- Subject: Re: jni test case question/ linking
- References: <3E4318FE000016CE@mail02.agrinet.ch>
- Reply-to: tromey at redhat dot com
>>>>> "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