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: 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.


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