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 for libjava/java/util/Calendar.java


On Thu, 2005-11-10 at 16:47 -0700, Tom Tromey wrote:
> * It will, I think, majorly screw users of static linking, as it
>   compiles in resource files.  I think these basically don't work when
>   statically linking, at least not ones compiled into libgcj.a.

Are you just referring to the fact that you have to force the resource
files into the final linked image?

Why don't we, for static linkers, create two .a files: libgcj.a and
libgcj-required.a.  libgcj-required.a would contain all of the .o files
that we need to force into every executable.  

Then we change the .spec file by replacing "-lgcj" with
"-lgcj --whole-archive -lgcj-required --no-whole-archive".

AG



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