enable static libgcj on darwin

Andrew Pinski pinskia@gmail.com
Thu Dec 28 01:29:00 GMT 2006


On 12/27/06, Adam Megacz <megacz@cs.berkeley.edu> wrote:
>
> "Andrew Pinski" <pinskia@gmail.com> writes:
> > crtstuff does:
> > ...
>
> [code which is executed on startup before main()]

No, it is called at two places, each time a shared library is loaded
and before main is called.

> Look, if I'm wrong, please explain why classes fail to get registered
> in static libgcj builds on Darwin.

Because static libgcj is not really supported and darwin.o is not
being linked in as it is not referenced (this is standard .a
behavior).

Try to get it linked in and you will see that works too.  If it does
not then explain why the main application works with dynamic library?

Anyways why are you trying to support static libgcj on Darwin, I can
understand embedded targets where memory and disk space is an issue
but darwin runs on "high end" machines only.

-- Pinski



More information about the Java-patches mailing list