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


>>>>> "Bryce" == Bryce McKinlay <bryce@albatross.co.nz> writes:

Bryce> gcj (and c++) should always use -lgcc_s if the platform uses a
Bryce> shared libgcc. So somehow, jvspec.c isn't being told to use
Bryce> gcc_s by default.  Perhaps ENABLE_SHARED_LIBGCC is not being
Bryce> defined for PowerPC?

I investigated this a little:

* Using -shared-libgcc is always safe, as it has no effect if no
  shared libgcc was built.  So I am not going to make further patches
  to the Makefiles.

* g++ and gcj try to always use -shared-libgcc.  I didn't investigate
  why we need -shared-libgcc for the libjava executables (maybe I
  screwed up or maybe there is a bug in gcj).

* However, gcc does not use -shared-libgcc by default.  That is why we
  have to pass it in boehm-gc and libffi (I discovered this evening I
  forgot to check in the libffi patch -- expect it soon)

Tom


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