Bug#582860: [libgtk2.0-dev] pkg-config requires too many libraries

Peter Fritzsche Peter.Fritzsche at gmx.de
Tue May 25 08:35:54 UTC 2010


On Tuesday 25 May 2010 08:39:48 you wrote:
> Le lundi 24 mai 2010 à 11:49 +0200, Peter Fritzsche a écrit :
> > Emilio Pozuelo Monfort wrote:
> > > Even though I'd really like to do that, I'm not still convinced we can
> > > do it in GTK+. Since GTK+ exports APIs of those libraries in its
> > > public headers, applications linking to GTK+ should link to those
> > > libraries too. Or do you say cflags would be enough, but not libs?
> > 
> > If they are using other libraries then they must use their pkg-config
> > anyway... otherwise they are broken. If the programs just use some
> > structs or other things which are declared in their header then the
> > cflags just looks like before and nothing has changed for them.
> > 
> > Or do you mean that there is a gtk_blablubfoo() which just is a define or
> > static inline function in their headers which uses glib_foobar()? It
> > would make gtk+-2.0 an evil library and prevent Requires.private.
> 
> For example some GTK+ functions return structures or types that are
> defined in Glib or Pango.

Thats ok. Those structure types have nothing todo with symbols which must be 
resolved by libraries. The header  stuff is still exported by --cflags as before 
- only the "third party" libraries will not appear using --libs when not using 
it together with --static.

Best regards,
	Peter 






More information about the pkg-gnome-maintainers mailing list