Fix the build of the native gtk-update-icon-cache when cross-compiling

Desktop / GNOME / GTK - Jehan [girinstud.io] - 13 August 2014 16:06 UTC

As a noinst_PROGRAMS, the libtool generated for cross-compiling will be used, which will mess up the linking. Create a all-local target instead. Also ensure that building uses always a native version of the tool by specifying a GTK_UPDATE_ICON_CACHE automake variable. Finally "config.h" has been created to work for the target platform and causes problem when cross-compiling. So we temporarily generate a basic config.h which contains only the strict minimum.

4376b4f Fix the build of the native gtk-update-icon-cache when cross-compiling.
configure.ac | 23 +++++++++++++----------
demos/gtk-demo/Makefile.am | 2 +-
demos/widget-factory/Makefile.am | 2 +-
gtk/Makefile.am | 10 ----------
gtk/native/Makefile.am | 8 +++++++-
5 files changed, 22 insertions(+), 23 deletions(-)

Upstream: git.gnome.org


  • Share