[PATCH] Don't link ecj1 against libgcj.so.* (PR libgcj/38396)

Paolo Bonzini bonzini@gnu.org
Thu Dec 18 10:08:00 GMT 2008


Jakub Jelinek wrote:
> Hi!
> 
> When libjava is configured --with-ecj-jar=/some/path/eclipse-ecj.jar,
> ecj1 is linked against both libgcj_bc.so.1 (because if USE_LIBGCJ_BC
> it is compiled/linked with -findirect-dispatch) and libgcj.so.*
> (because of explicit LDADD).  Now if such ecj1 linked say against
> libgcj.so.9 in GCC 4.3 is run against libgcj_bc.so.1 from GCC 4.4 build,
> libgcj_bc.so.1 depends on libgcj.so.10 and so ecj1 dynamically links against
> both libgcj.so.9 and libgcj.so.10, which is fatal.
> Java programs either have to be linked against libgcj.so.* only, no
> libgcj_bc.so.1 (for direct dispatch), or only against libgcj_bc.so.1
> and no libgcj.so.*.

Thanks for the very clear explanation.  Ok unless Andrew complains in 24
hours.

Paolo



More information about the Gcc-patches mailing list