This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch: libjava -vs- shared libgcc


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 ]



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]