Patch: libjava -vs- shared libgcc
Bryce McKinlay
bryce@albatross.co.nz
Thu Mar 22 16:53:00 GMT 2001
Tom Tromey wrote:
> >>>>> "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.
gcj (and c++) should always use -lgcc_s if the platform uses a shared
libgcc. So somehow, jvspec.c isn't being told to use gcc_s by default.
Perhaps ENABLE_SHARED_LIBGCC is not being defined for PowerPC?
regards
[ bryce ]
More information about the Java-patches
mailing list