The change in http://cgit.freedesktop.org/xorg/lib/libXft/commit/?id=8751e341bcc29952b4603e18767ab994653c6b01 seems wrong. The Xft.h public header includes fontconfig/freetype2/xrender headers, and the public Xft api uses fontconfig and xrender types. While it is still fine wrt linking, it is problematic because users of libXft need the correct CPPFLAGS for those libs. Also, one could argue that if the public api exposes fontconfig/xrender symbols to the app, then the lib should support using them.
CPPFLAGS are provided for those libraries due to their inclusion in Requires.private. See http://people.freedesktop.org/~dbn/pkg-config-guide.html and the discussion thread when the patch was reviewed on xorg-devel in http://lists.x.org/archives/xorg-devel/2010-September/ *** This bug has been marked as a duplicate of bug 31267 ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.