libjava "make install" is broken again

Jeff Sturm jsturm@one-point.com
Sun Mar 3 18:46:00 GMT 2002


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



More information about the Java-patches mailing list