This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Partially Linked Objects
- To: Olly Betts <olly@muscat.co.uk>
- Subject: Re: Partially Linked Objects
- From: Alexandre Oliva <oliva@dcc.unicamp.br>
- Date: 19 May 1999 03:50:18 -0300
- Cc: Brian Ford <ford@vss.fsi.com>, automake@gnu.org
- References: <19990518151822.6827.qmail@noxious.muscat.co.uk>
On May 18, 1999, Olly Betts <olly@muscat.co.uk> wrote:
> But doesn't that build a libtool convenience library? That's fine
> inside my own build system, which uses libtool. But it won't be
> much use to another user of my library if they don't use libtool in
> their build system. At present *none* of them do.
> So what I'm trying to do is partially link all the objects into one
> (because most of the aren't directly referenced so don't work
> separately in an archive library), then put this big object in an
> archive library which I can stick in /usr/lib and anyone can use.
If you're going to put the big reloaded object in an archive anyway,
why don't you just put all the small objects in it? It would
certainly save some build time and allow the linker to pick only the
needed objects.
Moreover, if you create a libtool static library, without any
dependencies, your users *will* be able to link with the static
library without using libtool. Even a shared library will do, if it's
installed in a directory that's searched by default.
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
{oliva,Alexandre.Oliva}@dcc.unicamp.br aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists