This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: FYI: Fix pr11951 JNI test case
- From: Tom Tromey <tromey at redhat dot com>
- To: Ranjit Mathew <rmathew at gmail dot com>
- Cc: java-patches at gcc dot gnu dot org
- Date: 06 May 2004 05:24:21 -0600
- Subject: Re: Patch: FYI: Fix pr11951 JNI test case
- References: <409955D0.3050000@redhat.com> <4099D03E.70101@gmail.com>
- Reply-to: tromey at redhat dot com
>>>>> "Ranjit" == Ranjit Mathew <rmathew@gmail.com> writes:
Ranjit> I don't know whether this is an intended shortcut to
Ranjit> avoid having to write System.loadLibrary() calls in the
Ranjit> testcases or whether this is an oversight/bug.
I don't recall :-(
Ranjit> What I don't understand is why the linker would leave
Ranjit> a reference to libpr11951.so even though nothing gets
Ranjit> linked in from there (or does it?) - this can be verified
Ranjit> by an "ldd" on the "a.out" created by adding
Ranjit> "-L. -lpr11951".
Shared libraries aren't like normal ones. If you tell the linker to
link against one, it will do so even if it isn't actually used.
That's my belief anyway.
Tom