This is the mail archive of the java@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: libgcj.a class substitution


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.


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