commit: 638a72c75b7c4c0cd3c524ccf138e00b30732055
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 13 03:18:49 2015 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Oct 13 03:24:00 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=638a72c7
dev-libs/glib: add various cross-compile settings
The upstream configure script has many tests that fail when
cross-compiling, so add proper settings until the upstream
bugs are resolved.
dev-libs/glib/glib-2.44.1-r1.ebuild | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/dev-libs/glib/glib-2.44.1-r1.ebuild
b/dev-libs/glib/glib-2.44.1-r1.ebuild
index 9534f7a..d5302bc 100644
--- a/dev-libs/glib/glib-2.44.1-r1.ebuild
+++ b/dev-libs/glib/glib-2.44.1-r1.ebuild
@@ -182,6 +182,19 @@ multilib_src_configure() {
export LIBFFI_LIBS="-lffi"
fi
+ # These configure tests don't work when cross-compiling.
+ if tc-is-cross-compiler ; then
+ # https://bugzilla.gnome.org/show_bug.cgi?id=756473
+ case ${CHOST} in
+ hppa*|metag*) export glib_cv_stack_grows=yes ;;
+ *) export glib_cv_stack_grows=no ;;
+ esac
+ # https://bugzilla.gnome.org/show_bug.cgi?id=756474
+ export glib_cv_uscore=no
+ # https://bugzilla.gnome.org/show_bug.cgi?id=756475
+ export ac_cv_func_posix_get{pwuid,grgid}_r=yes
+ fi
+
local myconf
case "${CHOST}" in