Bug#343711: gdk-x11-2.0.pc spreads library dependencies needlessly

Andreas Metzler ametzler at downhill.at.eu.org
Sun Dec 18 10:03:19 UTC 2005


On 2005-12-17 "J.H.M. Dassen (Ray)" <fsmla at xinara.org> wrote:
> On Sat, Dec 17, 2005 at 16:20:39 +0100, Loic Minier wrote:
> > On Sat, Dec 17, 2005, J.H.M. Dassen (Ray) wrote:
> > > (It also includes -lX11, but that dependency is exposed through e.g.
> > > gdk/gdkx.h)

> >  I didn't see the dependency you mention with -lX11, do you mean because
> >  of the included headers?

> Yes. I'm going by this guideline from /usr/share/doc/pkg-config/NEWS.gz:
> "Generally, if include another library's headers in your own, it's a public
> dependency and not a private one.".

Hello,
Color me stupid, but I do not get at all why a *header* inclusion
should cause *linking* against the library. The headers are (supposed
to be) selfcontained, linking should only be necessary if functions
from the library are used.
               cu andreas
PS: Not ccing anyone, I aassuming everyody has used nnn-subscribe at bdo
-- 
The 'Galactic Cleaning' policy undertaken by Emperor Zhark is a personal
vision of the emperor's, and its inclusion in this work does not constitute
tacit approval by the author or the publisher for any such projects,
howsoever undertaken.                                (c) Jasper Ffforde





More information about the Pkg-gnome-maintainers mailing list