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

Re: Top 20 unnecessary dependencies [was: Re: A plan to get rid of unnecessary package dependencies]



On Tue, Sep 26, 2006 at 11:41:33PM +0700, Mikhail Gusarov wrote:
> 
> You (kmccarty@Princeton.EDU) wrote:
> 
>  KBM> Most of these are X-related, suggesting that quite a lot of .la
>  KBM> and .pc files are pretty indiscriminate about which X libs they
>  KBM> link in.
> 
> Will this problem disappear if end programs will pass --as-needed flag
> to the ld command line?

--as-needed basicly does the same as checklib.  They both might say that
some library isn't needed while it actually is.  It might work in most
cases, but it might break in others.

The best solution is to avoid telling the linker it should be linking to
that library, but that might be hard in some cases.


Kurt



Reply to: