libtool
[Top][All Lists]
Advanced

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

Re: lib seach path


From: Ralf Wildenhues
Subject: Re: lib seach path
Date: Sun, 13 Dec 2009 11:14:58 +0100
User-agent: Mutt/1.5.20 (2009-10-28)

* Joakim Tjernlund wrote on Sat, Dec 12, 2009 at 04:33:49PM CET:
> 
> We have this big directory structure which contains both apps and libs.
> The apps needs lots of libs that are scattered in various sub dirs.
> It is rather messy to add lots -LDIR options to apps linking stage.

For dependencies on libraries within the build tree, prefer relative
file references over link flags; i.e., write
  ../lib/libfoo.la  rather than  -L../lib -lfoo

That way, automake (which I assume you're using) will know to rebuild
the output when libfoo changes.

> Is there a way to tell libtool after it has built a lib to do a "subinstall" 
> of the
> lib into some dir in the build tree so that one don't have to specify lots
> of -LDIR options, just to the one dir instead?

No.

Cheers,
Ralf




reply via email to

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