On Tue, Sep 26, 2006 at 11:41:33PM +0700, Mikhail Gusarov wrote: > > You ([EMAIL PROTECTED]) 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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]