This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch: Use lib-gnu-pkg-quux.so, not gnu-pkg-quux.so


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]