libtool
[Top][All Lists]
Advanced

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

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


From: Robert Boehne
Subject: Re: HOWTO Build one library from source in multiple subdirs?
Date: Tue, 29 May 2001 13:52:03 -0500

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.
> 
> Does libtool support what I outline above? If not what approach do you
> suggest?
> 
> Yours
> --
> %% Mats

Mats:

The point of convience libraries is that they only exist during
compilation, they NEVER get installed.  I've done a simialar project
using VPATH, but that has it's own problems.  I would suggest that
you create a convience library (you are using Automake, right?)
in each subdirectory, then link them into the library in the top
level directory.  This will work, so if you have problems read the
docs until you find the fix.  Once you get your head around how it
works you'll find Automake/Libtool makes your life much simpler.

Robert

-- 
Robert Boehne             Software Engineer
Ricardo Software   Chicago Technical Center
TEL: (630)789-0003 x. 238
FAX: (630)789-0127
email:  address@hidden



reply via email to

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