Building libgcj without -O2?

Tom Tromey tromey@cygnus.com
Fri Dec 3 10:11:00 GMT 1999


>>>>> "Bryce" == Bryce McKinlay <bryce@albatross.co.nz> writes:

Bryce> I've been trying to build libgcj without any optimization
Bryce> flags, in order to get more reliable debugging.

Bryce> .libs/libgcj.so: undefined reference to `JvNewObjectArray(int, java::lang::Class
Bryce> *, java::lang::Object *)'
Bryce> .libs/libgcj.so: undefined reference to `JvGetArrayLength(__JArray *)'

I looked into this a bit.  It beat me.

I thought adding #pragma interface/implementation to jvm.h and
prims.cc (resp) would work.  Nope.

Then I thought compiling prims.cc with -fkeep-inline-functions would
work.  Also nope.

I can think of some uglier solutinos, but I'd rather not unless we
really need to.

T




More information about the Java mailing list