This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: 3.0.1 PATCH: Support JNI_OnLoad on systems without weak definitions
- To: Tom Tromey <tromey at redhat dot com>
- Subject: Re: 3.0.1 PATCH: Support JNI_OnLoad on systems without weak definitions
- From: Jeff Sturm <jsturm at one-point dot com>
- Date: Tue, 24 Jul 2001 13:36:08 -0400 (EDT)
- cc: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>, java-patches at gcc dot gnu dot org
On 24 Jul 2001, Tom Tromey wrote:
> I wonder if we really need all this JNI_OnLoad stuff here. It seems
> to me that even if a JNI library is linked in to the final executable,
> the Java code will still try to load the library dynamically, and the
> code in natRuntime.cc will still look in the library for the
> JNI_OnLoad symbol at runtime.
It wouldn't do the right thing anyway if two such libraries each export
JNI_OnLoad.
Jeff