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

Re: pkg-config including too much crap



"Martijn van Oosterhout" <kleptog@gmail.com> writes:

> Hi,
>
> When you run pkg-config you sometimes get a lot more crap than you
> need. For example:
>
> # pkg-config --libs gtkspell-2.0
> -L/usr/X11R6/lib -lgtkspell -laspell -lgtk-x11-2.0 -lgdk-x11-2.0
> -lXrandr -lXi -lXinerama -lXext -latk-1.0 -lgdk_pixbuf-2.0 -lm
> -lpangocairo-1.0 -lfontconfig -lXcursor -lpango-1.0 -lcairo -lXrender
> -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
>
> Like, err, a little too much, I think. There was Bug#229980 which says
> this is fixed only it's not. I'm running version 0.20-1.
>
> Is there a way to get sane output from pkg-config or should I just
> parse the .pc file myself?

The .pc file needs converting to use Libs.private for libraries which
are only indirect dependencies.


Regards,
Roger

-- 
Roger Leigh
                Printing on GNU/Linux?  http://gutenprint.sourceforge.net/
                Debian GNU/Linux        http://www.debian.org/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.

Attachment: pgpqvr9BM891E.pgp
Description: PGP signature


Reply to: