-shared-libgcc vs. -static -static-libgcc

Richard Henderson rth@redhat.com
Thu Feb 28 13:09:00 GMT 2002


On Thu, Feb 28, 2002 at 01:11:17AM -0300, Alexandre Oliva wrote:
> and libjava binaries no longer depend directly on libgcc_s, as intended.

Err, no.  If a java binary throws or catches exceptions,
and given the style of use of exceptions in java this is
exceedingly likely, then the binary should link against
libgcc_s so that it acquires the proper symbol versions.

> 	* gcc.c (init_gcc_specs): Get -static and -static-libgcc to
> 	override -shared and -shared-libgcc.

Ok.


r~



More information about the Java-patches mailing list