[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HOWTO Build one library from source in multiple subdirs?

From: Gary V . Vaughan
Subject: Re: HOWTO Build one library from source in multiple subdirs?
Date: Mon, 28 May 2001 19:50:34 +0100

On Monday 28 May 2001  9:56 am, Mats Lidell wrote:
> Hi,
> I'm trying to build one library from sourcode in multiple sub
> directories. (You could see it as getting one single library from a
> package big enough to be split in many directories.) Somehow I got the
> impression that I could get support from libtool and build one library
> in each subdir and then get libtool to merge them into on
> library. Perhaps during install.
> I have tried it but so far I have only come up with the idea of using
> a convenience library that explicitly states each subdir library. This
> means I have to export, eg install, each subdir library as well as the
> convenience library.

Don't install the convenience libraries, link against the uninstalled 
versions.  Libtool will copy the contents of the convenience libraries into 
the shared library that references them.

> Does libtool support what I outline above? If not what approach do you
> suggest?

Yes it does.

  ())_.  Gary V. Vaughan     gary@(|
  ( '/   Research Scientist        ,_())____
  / )=   GNU Hacker   \'      `&
`(_~)_   Tech' Author    =`---d__/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]