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

Re: Requires vs Requires.private ?



On Mon, 2005-12-19 at 07:04 -0600, Rex Dieter wrote:
> Alexander Larsson wrote:
> 
> > If A Requires.private: B, that means libA links to libB, but apps/libs
> > that link to libA does not have to link to libB (when linking
> > dynamically on platforms that support library dependencies, like Linux).
> 
> Very nice.  Avoids library linking bloat.  Too bad libtool archives 
> don't include a "private" feature (at least, AFAIK they don't).`\


you can achieve the same by giving ld the -Wl,--as-needed flag, then ld
will just drop unused linked-to libraries. Unfortunately libtool
effectively filters this out as well ;(


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