This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: Use lib-gnu-pkg-quux.so, not gnu-pkg-quux.so
Tom wrote:
> Right now, in natRuntime.cc, we only add the `lib' prefix on Unix
> boxes. Shouldn't we also do this here? Also, do we really want the
> leading `-' in the Windows case?
>
> Of course, we'd still like `gcj -lfoo' to work the same on both
> Windows and Unix. So that argues for dropping the leading `-'.
What about the problem of conflicting library names? A quick search on
google shows that libcom.so, libnet.so, liborg.so, libjava.so are all real
library names (I think libnet.so and libjava.so are part of Sun's
implementation). I'm a little bit nervous about our runtime poking about in
these libraries. At the very least this kind of conflict will slow things
down.
I understand your point about the Windows library naming scheme. On the
other hand, the library names we're using are clearly an artificial naming
scheme in support of gcj's class loader - so I don't see why this particular
unix-ism leak into Windows should be a problem. In any case, doesn't
"gcc -lfoo" under Windows force a search for libfoo.something anyways?
AG