This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: enable static libgcj on darwin
"Andrew Pinski" <pinskia@gmail.com> writes:
> crtstuff does:
> ...
[code which is executed on startup before main()]
> While libjava/darwin.cc does:
> ...
[code which is invoked only when a shared library is loaded]
In other words, they do similar things at completely different times.
Darwin is doing the right thing but not at all the right times.
> You still have not said what is really missing?
> ...
> darwin_java_register_dyld_add_image_hook is invoke every time a
> dynamic library is loaded (or really added). So I don't see what the
> problem is still.
The "dynamic" part. This only works for classes which are in .dylib's.
Look, if I'm wrong, please explain why classes fail to get registered
in static libgcj builds on Darwin.
- a
--
PGP/GPG: 5C9F F366 C9CF 2145 E770 B1B8 EFB1 462D A146 C380