This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: libgcj.a class substitution
- From: Andrew Haley <aph at redhat dot com>
- To: Olivier Parisy <ml dot olivier dot parisy at free dot fr>
- Cc: java at gcc dot gnu dot org
- Date: Mon, 20 Nov 2006 10:48:53 +0000
- Subject: Re: libgcj.a class substitution
- References: <4561613E.7030205@free.fr>
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.