From e2e118ec32075f93967f8a6c3ee34f1949372c3f Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Mon, 14 May 2012 15:47:32 -0700 Subject: [PATCH] Ease glib cross-compiling requirements Since we're building only glib, we don't need any of the auxiliary tools. --- glib-patches/cross-compiling.patch | 35 ++++++++++++++++++++++++++++++ glib-patches/patchlist | 1 + glib/configure.ac | 24 -------------------- 3 files changed, 36 insertions(+), 24 deletions(-) create mode 100644 glib-patches/cross-compiling.patch diff --git a/glib-patches/cross-compiling.patch b/glib-patches/cross-compiling.patch new file mode 100644 index 0000000..9960b42 --- /dev/null +++ b/glib-patches/cross-compiling.patch @@ -0,0 +1,35 @@ +diff --git a/glib/configure.ac b/glib/configure.ac +index d551832..da67a56 100644 +--- a/glib/configure.ac ++++ b/glib/configure.ac +@@ -2447,30 +2447,6 @@ int error = EILSEQ; + ], have_eilseq=yes, have_eilseq=no); + AC_MSG_RESULT($have_eilseq) + +-dnl ****************************************************************** +-dnl *** If we are cross-compiling, look for glib-genmarshal and *** +-dnl *** glib-compile-schemas in PATH *** +-dnl ****************************************************************** +- +-AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes) +- +-if test $cross_compiling = yes; then +- AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal, no) +- if test x$GLIB_GENMARSHAL = xno; then +- AC_MSG_ERROR(Could not find a glib-genmarshal in your PATH) +- fi +- +- AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas, no) +- if test x$GLIB_COMPILE_SCHEMAS = xno; then +- AC_MSG_ERROR(Could not find a glib-compile-schemas in your PATH) +- fi +- +- AC_PATH_PROG(GLIB_COMPILE_RESOURCES, glib-compile-resources, no) +- if test x$GLIB_COMPILE_RESOURCES = xno; then +- AC_MSG_ERROR(Could not find a glib-compile-resources in your PATH) +- fi +-fi +- + dnl + dnl Tracing + dnl diff --git a/glib-patches/patchlist b/glib-patches/patchlist index 636863e..e324cbb 100644 --- a/glib-patches/patchlist +++ b/glib-patches/patchlist @@ -3,3 +3,4 @@ no-installed-files.patch foreign-automake.patch no-gregex.patch no-pkg-config.patch +cross-compiling.patch diff --git a/glib/configure.ac b/glib/configure.ac index d551832..da67a56 100644 --- a/glib/configure.ac +++ b/glib/configure.ac @@ -2447,30 +2447,6 @@ int error = EILSEQ; ], have_eilseq=yes, have_eilseq=no); AC_MSG_RESULT($have_eilseq) -dnl ****************************************************************** -dnl *** If we are cross-compiling, look for glib-genmarshal and *** -dnl *** glib-compile-schemas in PATH *** -dnl ****************************************************************** - -AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes) - -if test $cross_compiling = yes; then - AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal, no) - if test x$GLIB_GENMARSHAL = xno; then - AC_MSG_ERROR(Could not find a glib-genmarshal in your PATH) - fi - - AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas, no) - if test x$GLIB_COMPILE_SCHEMAS = xno; then - AC_MSG_ERROR(Could not find a glib-compile-schemas in your PATH) - fi - - AC_PATH_PROG(GLIB_COMPILE_RESOURCES, glib-compile-resources, no) - if test x$GLIB_COMPILE_RESOURCES = xno; then - AC_MSG_ERROR(Could not find a glib-compile-resources in your PATH) - fi -fi - dnl dnl Tracing dnl