[PATCH, take 2] Build java as two separate DLLs on windows.

Andrew Haley aph@redhat.com
Sun Sep 6 02:53:00 GMT 2009


Dave Korn wrote:
> Andrew Haley wrote:
> 
>> I had a look, and while it looks OK it seems to be written only for
>> Windows. That's a shame.  Will it work on GNU/Linux?  Can it be made to?
>> That would help to keep the facility from bitrotting.
> 
>   It doesn't quite work on linux.  Builds both the libraries, but then there's
> some kind of problem caused by the use of ELF visibility when it starts trying
> to link the tools against them:

>   I would guess that when the functions were all in one library together they
> could see each other even if not externally visible, and now they're in
> separate libraries they can't.  PE targets don't support visibility so it
> doesn't prevent the functions being imported by libgcj-noncore from libgcj.
> 
>   Not being a major ELF-head, I don't know what would be the right thing to do
> about this.  Make them visible?  Is there any way of declaring a "friend library"?

Maybe just disable the linker script when split into two libraries?  It'd still
work.

Andrew.



More information about the Java-patches mailing list