gcj static builds are failing

Andrew Haley aph@redhat.com
Wed Jan 10 19:47:00 GMT 2007


Marco Trudel writes:
 > Tom Tromey wrote:
 > >>>>>> "Andrew" == Andrew Haley <aph@redhat.com> writes:
 > > 
 > > Andrew> At the moment we determine the availability of libmagic at libgcj
 > > Andrew> build time.  This is wrong, because even if libmagic is present when
 > > Andrew> gcj is built, it isn't necessarily present when libgcj apps are built,
 > > Andrew> and vice versa.
 > > 
 > > I don't agree with this.  I think it is safe to assume that whatever
 > > we discover at configure time is true for the lifetime of the libgcj
 > > install.
 > 
 > What about deploying the compiler binaries to users (as mingw, cygwin, 
 > Mohan or I do)? Or what about cross compilations where the host will be 
 > something different?

That's a matter of making sure that when you install a cross-compiler
you also get its dependencies right.

Anyway, the plan I had won't work because there is no reliable way to
dlopen() from a statically liked binary.

-static-libgcj will still work, as usual, if I make a small change to
libgcj.spec.  That's what I'll do.

Andrew.



More information about the Java mailing list