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]
Other format: [Raw text]

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


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.


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