removing or using AWT/Swing

Tom Tromey tromey@redhat.com
Mon Jul 31 17:05:00 GMT 2006


>>>>> "Marco" == Marco Trudel <mtrudel@gmx.ch> writes:

>> We can't use the precompiled shared library, becasue you've disabled
>> it with --disable-shared.

Marco> Hm... Why isn't it pulled in automatically? IMHO it would make sense if 
Marco> GCC is statically compiled.

Nobody has done the work.  And fwiw this is likely to be just the
first difficulty you encounter with static linking.

Marco> Currently, extra files have to be added for different special
Marco> cases when gcj is compiled statically. E.G. for regular
Marco> expression, probably for AWT, for security specifications...
Marco> Is it possible to add all these automatically? It's kind of
Marco> dull to do this oneself. Specially because one never knows what
Marco> else could be missing...

You pretty much have to know what you need.  Many static linking users
are trying to shrink their resulting image, so for them this approach
is a feature, and not a bug -- it gives them tighter control over what
ends up in their executable.

Tom



More information about the Java mailing list