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

Bug#375825: libxft-dev: xft-config --libs shouldn't include -lX11 -lfreetype -lz -lfontconfig -lXrender -lX11



On Wed, Jun 28, 2006 at 11:45:04 +0200, Samuel Thibault wrote:

> There are spurious dependencies in the output of xft-config --libs:
> 
> -lXft -lX11 -lfreetype -lz -lfontconfig -lXrender -lX11
> 
> -lfreetype -lz -lfontconfig -lXrender are _not_ needed in -libs (since
> the Xft _interface_ doesn't need functions from these libraries) and
> just bring unneeded dependencies. They should be used only for linking
> libXft.so itself, and put in xft-config --libs --static (for static
> linking).
> 
xft-config doesn't have a --static option, so it's kinda hard to know
what unexporting these libs would break.  People should use pkg-config
instead, with the provided xft.pc file, which fixes this issue (pending
the fix for #389831).
So IMO the fix for this bug is to move all xft-config users to
pkg-config, and to remove xft-config completely.

Cheers,
Julien

Attachment: signature.asc
Description: Digital signature


Reply to: