[PATCH] Build libjava as two separate gorillas on Windows.
Bryce McKinlay
bmckinlay@gmail.com
Thu Sep 3 13:40:00 GMT 2009
On Thu, Aug 27, 2009 at 10:45 PM, Dave
Korn<dave.korn.cygwin@googlemail.com> wrote:
> The weakness is that it systematically ignores the whole USE_LIBGCJ_BC
> thing. I didn't approach that yet because I'm not 100% clear what's going on
> with it. I /think/ that libgcj_bc.la is basically a version of libgcj
> compiled with the binary abi, but there's all this stuff in the makefile about
> a dummy library and making a link to the real libgcj, so maybe I don't
> actually need to do anything except extend the specs handling a bit. Advice
> eagerly accepted here.
Dave,
The libgcj_bc library is a dummy library that is needed due to the way
that shared library versioning (ie soname) works on ELF systems. It
contains no actual code, just a bunch of symbols that BC compiled
applications can link against instead of linking libgcj.so directly.
This means that those BC-compiled binaries will continue to work when
the underlying libgcj is updated to a new version with a new soname.
(If all applications were BC compiled, it wouldn't be necessary - we
could just avoid changing libgcj's soname)
I don't know a lot about DLL versioning on Windows, but I suspect that
libgcj_bc may not be required and shouldn't be built on that platform.
Bryce
More information about the Java-patches
mailing list