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


Andrew Haley a écrit :
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.
Actually, there was an error in my ant script, and the -v option helped me fixing it.

Once my file was taken into account, the linking part failed with a "multiple definitions" warning, which seemed logical. I fixed this with the "--allow-multiple-definition" ld flag.

The behavior seems OK now: my custom class is properly linked, and seems to have replaced its libgcj counterpart with respect to file size.

Thanks for the hint,
Olivier Parisy.


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