Summary: | fontconfig's code generators unnecessarily depend on freetype | ||
---|---|---|---|
Product: | fontconfig | Reporter: | Volker Grabsch <bugs.freedesktop.org> |
Component: | library | Assignee: | Keith Packard <keithp> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | medium | CC: | bugs.freedesktop.org |
Version: | 2.5 | Keywords: | janitor, patch |
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
enable cross compiling by removing freetype dependencies from the code generators
Split out the Freetype dependent internal functions to fcftint.h Extension to the second patch to work properly |
Description
Volker Grabsch
2007-12-22 13:45:15 UTC
Created attachment 13316 [details] [review] enable cross compiling by removing freetype dependencies from the code generators When cross compiling fontconfig 2.5.0, the code generators of fontconfig depend on freetype. This is a big problem, because the FREETYPE_* variables (as determined by ./configure) point to the cross-compiled freetype instead of the native freetype. Luckily, the code generators don't really have this dependency. It is merely introduced as a side effect by "fcint.h". The simplest solution is not to include FREETYPE_CFLAGS in the Makefile.am/in of fc-case, fc-arch, etc. and to define a symbol NOFREETYPE instead. Then "fcint.h" just needs to exclude any freetype dependent code if NOFREETYPE is defined. This patch for fontconfig-2.5.0 does exactly that. I think a better solution is to eliminate fcfreetype.h from fcint.h and instead create a new fcftint.h file that provides the freetype-specific internal functions for use by the library. I'll attach a patch that does that, please test and verify that it provides the necessary separation. Created attachment 13334 [details] [review] Split out the Freetype dependent internal functions to fcftint.h This patch creates fcftint.h, which defines the internal freetype-specific APIs used within the fontconfig library. Portions of fontconfig which do not touch freetype APIs need not use this file. (Sorry for replying so late.) (In reply to comment #2) > please test and verify that it provides the necessary separation. Your patch doesn't work because you forgot to remove '$(FREETYPE_CFLAGS)' from the fc-*/Makefile.am files. I created an additional patch which solves that problem. Both patches in combination seem to work properly. Created attachment 13459 [details] [review] Extension to the second patch to work properly The current fontconfig git master works fine. Thank you for including my patch. |
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.