static linking

Alexandre Oliva
Wed Dec 6 10:03:00 GMT 2000

On Dec  6, 2000, Tom Tromey <> wrote:

>>> gcj shouldn't need to do anything special to get the supc++ stuff,
>>> it should all be put into libgcj.a, the same way it gets built into
>>> libstdc++.

Alexandre> Methinks explicitly linking libstdc++ in should be enough.

> We don't want to do this.  Java programs don't need all of libstdc++.

For static linking, they'll get only as much as they need.  But for
shared linking, it can indeed make a significant difference.

>>> The best solution, I think, would be to make a compiler option that
>>> allows you to do this more easily. eg
>>> "--link=gnu.gcj.protocol.jar.Handler,gnu.gcj.protocol.http.Handler"
>>> or something.

Alexandre> Good idea.

> I agree.  Like Jeff says, we could do this by further hacking
> jvgenmain.


Alexandre Oliva   Enjoy Guarana', see
Red Hat GCC Developer                  aoliva@{,}
CS PhD student at IC-Unicamp        oliva@{,}
Free Software Evangelist    *Please* write to mailing lists, not to me

More information about the Java mailing list