libgcj.a class substitution

Andrew Haley aph@redhat.com
Mon Nov 20 10:49:00 GMT 2006


Olivier Parisy writes:

 > Let's say I write a replacement for a JDK class available in libgcj.a 
 > (same package, same public signature).
 > 
 > As it turns out, it seems like I can natively compile this replacement 
 > class, but when generating an executable, its libgcj.a counterpart is 
 > still linked in.

Please post the command you used to build your test case.  Use the
"-v" argument so we can see what gcj is doing.

ld scans from left to right, picking up classes as it goes.  If you
want your class to be used, mention it first.

Andrew.



More information about the Java mailing list