Patch: Use lib-gnu-pkg-quux.so, not gnu-pkg-quux.so
Tom Tromey
tromey@redhat.com
Wed Aug 22 08:54:00 GMT 2001
>>>>> "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
More information about the Java-patches
mailing list