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

Re: Dependencies of -dev packages

On Mon, 24 Oct 2005, Kurt Roeckx wrote:
> On Mon, Oct 24, 2005 at 02:03:51PM +0200, Gabor Gombas wrote:
> > On Fri, Oct 21, 2005 at 07:15:38PM +0200, Kurt Roeckx wrote:
> > > Pretty please don't suggest that unless you first fix pkg-config.
> > > It's always linking in the libraries required for static linking
> > > even if you don't request it.  See for instance bug #254290,
> > > which was closed, but didn't really do what the original patch
> > > did.
> > 
> > What needs fixing? I did not have time to guess what the completely
> > undocumented patch in #254290 does, so I did a little experiment:
> > 
> > $ pkg-config --libs a
> > -la -lb
>       ^^^
> It should not link to libb if you only request it to link to
> liba.  liba should have a DT_NEEDED for libb, and the linker
> should find the symbols liba needs from libb itself.

For dynamic linkage.  Static, AFAIK, requires both libs.  And here lies the
utter braindamage in pkg-config.

  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

Reply to: