Bug#389831: libxft-dev: pkg-config reports to much libraries for linking
On Fri, Mar 30, 2007 at 05:24:20PM +0200, Julien Cristau wrote:
> [cc:ing vorlon as the author of 001_no_export_freetype.diff in the xft
> package]
> On Thu, Sep 28, 2006 at 02:12:25 +0200, Jörg Sommer wrote:
> > the site http://rerun.lefant.net/checklib/ pointed me to the problem that
> > my package xjed defines too much dependencies:
> > http://rerun.lefant.net/checklib/log.xjed_0.99.18-5.html I could track
> > down this problem to
> > % pkg-config --libs xft
> > -lXft -lfontconfig
> > According the site above the linker option -lfontconfig is not necessary.
> I think the following patch should fix this. It gives the following
> results:
> $ pkg-config --libs xft
> -lXft
> $ pkg-config --static --libs xft
> -lXft -lXrender -lfontconfig -lexpat -lfreetype -lz
> $ pkg-config --cflags xft
> -I/usr/include/freetype2
> $ pkg-config --static --cflags xft
> -I/usr/include/freetype2
> which I think are correct (this is with pkg-config 0.21-1).
> Unfortunately Requires.private isn't documented and its handling isn't
> consistent (see #390132), so I'm not completely sure this is the right
> thing to do :)
I believe the reason I didn't propose a patch to do this was precisely
because of --cflags handling, since xft does include some fontconfig headers
that clients will need to find the path for.
Cheers,
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
vorlon@debian.org http://www.debian.org/
Reply to: