libtool, java woes

Andrew Haley aph@cambridge.redhat.com
Mon Apr 9 10:40:00 GMT 2001


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.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /