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

pkg-config including too much crap


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?
Martijn van Oosterhout <kleptog@gmail.com> http://svana.org/kleptog/

Reply to: