This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: libtool, java woes
Tom Tromey writes:
> >>>>> "Alexandre" == Alexandre Oliva <aoliva@redhat.com> writes:
>
> Alexandre> Yep. libsupc++ is linked with -lc. Since libsupc++
> Alexandre> appears before -lpthread in the libgcj link command line,
> Alexandre> -lc gets linked in first. The solution is to move
> Alexandre> -lpthread first, or get libsupc++ linked with -lpthread.
> Alexandre> The former is probably best for libgcj.
>
> The problems I'm seeing have nothing to do with -lpthread but instead
> the relative ordering of -lc and -lgcc_s. If -lc comes first, then my
> Java programs crash on exit. If -lgcc_s comes first, then they work.
This will also break libstdc++, because1 the exception handing
primitives that must be used are in libgcc, not the versions in libc.
This will be true until libc is compiled with the new exception
handling.
> Alexandre> What I don't understand is why libgcj is linked with
> Alexandre> libsupc++, and not with libstdc++.
>
> We don't need or want libstdc++.
What do we need that's in libsupc++? Is it the C++ EH runtime?
Andrew.