libgcj.a class substitution

Olivier Parisy ml.olivier.parisy@free.fr
Mon Nov 20 23:13:00 GMT 2006


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.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /