Patch: libjava -vs- shared libgcc
Tom Tromey
tromey@redhat.com
Thu Mar 22 16:36:00 GMT 2001
>>>>> "Bryce" == Bryce McKinlay <bryce@albatross.co.nz> writes:
>> Maybe it needs to be fixed in the compiler. I don't know. As far
>> as I can tell the compiler is working how it was planned to work.
Bryce> On i686 linux, "-shared-libgcc" is the default when building a
Bryce> shared library. So, it seems wrong that we'd have to do it
Bryce> differently on PowerPC.
We're passing it when building the executables, not the libraries. If
we don't pass it then the linker actually sees `-lgcc' instead of
`-lgcc_s', and this doesn't work.
Bryce> I think I read somewhere that some platforms will always use a
Bryce> static libgcc, even if shared libraries are supported for
Bryce> things like libgcj.
Due to limitations in libtool's AC_ENABLE_SHARED macro, we can't
detect whether `--enable-shared=libgcc' was given to the libjava
configure. I think our only recourse is to detect the (possible
non-)existence of libgcc.so at libjava configure time. I think this
approach will handle such systems.
Tom
More information about the Java-patches
mailing list