libtool
[Top][All Lists]
Advanced

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

Re: linking against local libs across directories and DESTDIR


From: Ralf Wildenhues
Subject: Re: linking against local libs across directories and DESTDIR
Date: Mon, 20 Aug 2007 07:22:26 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

Hello Mike,

* Mike Frysinger wrote on Mon, Aug 20, 2007 at 05:46:14AM CEST:
> there a list of good hints out there for managing libs across
> directories ?  i flipped through the libtool manual and the autobook
> but didnt really find anything ...

I think the total ordering implied via partial SUBDIRS ordering is the
best hint.

> what's the solution here ?  yes, i can re-order SUBDIRS so that it reads "lib 
> c", but is that really a guarantee in a parallal build that the "c" subdir 
> will not get processed before the "lib" subdir (the automake manually isnt 
> especially clear here, maybe i'll bug them) ?

At the moment, yes.  I don't know whether that used to be different a
long time ago, but some comments in Automake hint to this.

> what if the project has so many nests of dirs and interdependencies
> that simply re-ordering SUBDIRS may not be possible ?

I guess you can play games at install time too, changing directories
manually in your additional rules and so on.  But in the end you will
need to impose some kind of ordering, whether done through SUBDIRS or
hacking around it.

There's a TODO item in Automake to compute a dependency ordering of
uninstalled libraries inside a source tree and use that for install.
It could lift this restriction somewhat.  It's quite a bit of work
though.

Hope that helps.

Cheers,
Ralf




reply via email to

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