This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: PATCH: Use libgcj_convenience.la
- From: Michael Matz <matz at kde dot org>
- To: "David S. Miller" <davem at redhat dot com>
- Cc: <java at gcc dot gnu dot org>, <gcc at gcc dot gnu dot org>, <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 5 Jun 2002 12:01:14 +0200 (MET DST)
- Subject: Re: PATCH: Use libgcj_convenience.la
Hi,
On Tue, 4 Jun 2002, David S. Miller wrote:
> Ignore what I said, I misread your patch, Sorry.
>
> It really should help.
Although it should be noted, that it only helps with linkers supporting
--whole-archive. Otherwise libtool extracts the convenience lib on it's
own, into a subdir named something like libgcj_convenience_lax/something/
and adds all those extracted objects again to the link command. Due to
the added subdir that might mean, that in the end the link command is even
longer than before (though, also before the object-list contained
subdirs).
Ohh, another idea: I just checked, and in libjava, there are multiple
objects with the same filename (in different dirs of course). This means,
that the above extraction will only leave one of those files in the subdir
(they are simply inserted/extracted by ar, which doesn't handle subdirs),
so the final shared lib will not contain all objects. I.e. the patch
breaks with ld's not supporting whole_archive_flag_spec.
Ciao,
Michael.