Menu

#742 Cannot cross-compile gutenprint

5.3-fixed
open
nobody
None
5
2023-04-28
2023-04-28
Ross Burton
No

It's impossible to easily cross-compile gutenprint as src/xml/xmli18n-tmp.h is generated at build time using extract-strings, which in cross builds will be built with the cross compiler.

The usual solution here is to use autoconf-archive's CC_FOR_BUILD macros, which let you use a potentially different compiler for specific tools which need to be ran on the build host.

Of course, the fact that extract-strings links to a fairly large chunk of the library is an issue, but it's fairly simple to just ignore the library and build the sources needed directly.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB