1 |
commit: 638a72c75b7c4c0cd3c524ccf138e00b30732055 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 13 03:18:49 2015 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 13 03:24:00 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=638a72c7 |
7 |
|
8 |
dev-libs/glib: add various cross-compile settings |
9 |
|
10 |
The upstream configure script has many tests that fail when |
11 |
cross-compiling, so add proper settings until the upstream |
12 |
bugs are resolved. |
13 |
|
14 |
dev-libs/glib/glib-2.44.1-r1.ebuild | 13 +++++++++++++ |
15 |
1 file changed, 13 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/glib/glib-2.44.1-r1.ebuild b/dev-libs/glib/glib-2.44.1-r1.ebuild |
18 |
index 9534f7a..d5302bc 100644 |
19 |
--- a/dev-libs/glib/glib-2.44.1-r1.ebuild |
20 |
+++ b/dev-libs/glib/glib-2.44.1-r1.ebuild |
21 |
@@ -182,6 +182,19 @@ multilib_src_configure() { |
22 |
export LIBFFI_LIBS="-lffi" |
23 |
fi |
24 |
|
25 |
+ # These configure tests don't work when cross-compiling. |
26 |
+ if tc-is-cross-compiler ; then |
27 |
+ # https://bugzilla.gnome.org/show_bug.cgi?id=756473 |
28 |
+ case ${CHOST} in |
29 |
+ hppa*|metag*) export glib_cv_stack_grows=yes ;; |
30 |
+ *) export glib_cv_stack_grows=no ;; |
31 |
+ esac |
32 |
+ # https://bugzilla.gnome.org/show_bug.cgi?id=756474 |
33 |
+ export glib_cv_uscore=no |
34 |
+ # https://bugzilla.gnome.org/show_bug.cgi?id=756475 |
35 |
+ export ac_cv_func_posix_get{pwuid,grgid}_r=yes |
36 |
+ fi |
37 |
+ |
38 |
local myconf |
39 |
|
40 |
case "${CHOST}" in |