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]
Other format: [Raw text]

Re: libjava "make install" is broken again


On Mon, 4 Mar 2002, Bryce McKinlay wrote:
> BTW, do you know how to stop libtool doing a "relink" of libgcj.la on 
> every "make install"? It does not do this for libstdc++ so it appears to 
> be something libjava is doing?

I have a hunch about this but haven't tested it yet.

If you look at the dynamic section of libgcj.so before installing (i.e.
readelf -d) you'll notice the baked-in rpath points to boehm-gc and zlib
in your build directory.  Libtool is smart enough to recognize these
directories are invalid for installation, so it relinks.

One workaround is to forget about libgcjgc.so and libzgcj.so and link them
as convenience libraries instead.  I'm not sure why we have these; at one
time it may have seemed feasible to have pluggable GC but it certainly
isn't now.

I've wanted to patch the build for a while to remove libgcjgc.so and
libzgcj.so, but didn't get around to it because it doesn't really fix
anything that's "broken".  Except that it may prevent the relink.

Jeff


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