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
- To: green at cygnus dot com
- Subject: Re: Patch: Use lib-gnu-pkg-quux.so, not gnu-pkg-quux.so
- From: Tom Tromey <tromey at redhat dot com>
- Date: 22 Aug 2001 10:28:05 -0600
- Cc: java-patches at gcc dot gnu dot org
- References: <200108212000.NAA06222@fencer.cygnus.com>
- Reply-To: tromey at redhat dot com
>>>>> "Anthony" == Anthony Green <green@redhat.com> writes:
Anthony> This patch changes the runtime to look for lib-gnu-pkg-quux.so.
Anthony> libgnu-pkg-quux.so was considered, but it seems too easy to
Anthony> conflict with existing shared libaries (libgnu.so?). Users
Anthony> will have to link with "gcj -l-gnu-pkg-quux". This seems
Anthony> easy to get used to, and has the nice property that it makes
Anthony> it obvious that, for instance, lib-gnu.so is probably a gcj
Anthony> library.
Anthony> Ok?
On Windows it is more common to name a library "foo.dll" instead of
"libfoo.so".
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 `-'.
(Though really link-time libraries should probably be handled
invisibly; see Per's comments on this topic.)
Tom