GNOME Bugzilla – Bug 768493
Differentiate between cross-compiling and executable prefix
Last modified: 2016-10-31 14:33:32 UTC
In cerbero, the prefix_is_executable() function was really use to check for cross-compilation, there is also a cross_compiling() function that was little used. So in the attached patch-set, I made "prefix_is_executable()" to mean if the target binaries can be ran on the build host, and "cross_compiling()" mean that the target host is different from the build host, even if they are the same architecture. Then I have a series of patches to apply that everywhere.
Created attachment 330959 [details] [review] glib-networking-static: No need to bother with gio cache
Created attachment 330960 [details] [review] config: Differentiate between cross-compiling and executable prefix Clean up the different between cross-compiling, which means that the target is not the build system, and executable prefix, which means that the build system can execute binaries from the target prefix
Created attachment 330961 [details] [review] libxml2: Disable python when cross-compiling It's not specific to arm, but pretty much for any non-native build as cerbero doesn't include python.
Created attachment 330962 [details] [review] theora: Disable examples when cross-compiling
Created attachment 330963 [details] [review] zlib: Use host if provided
Review of attachment 330962 [details] [review]: ::: recipes/libtheora.recipe @@ +34,1 @@ self.configure_options += ' --disable-examples' Should maybe disable them always?
Attachment 330959 [details] pushed as d650b37 - glib-networking-static: No need to bother with gio cache Attachment 330960 [details] pushed as e2595a0 - config: Differentiate between cross-compiling and executable prefix Attachment 330961 [details] pushed as 1dc1b3c - libxml2: Disable python when cross-compiling Attachment 330962 [details] pushed as 16ccfa8 - theora: Disable examples when cross-compiling Attachment 330963 [details] pushed as 9afc668 - zlib: Use host if provided