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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


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