GNOME Bugzilla – Bug 756473
glib_cv_stack_grows breaks cross-compile
Last modified: 2018-05-24 18:17:17 UTC
the glib configure.ac has: AC_CACHE_CHECK([for growing stack pointer],glib_cv_stack_grows,[ AC_TRY_RUN([ volatile int *a = 0, *b = 0; void f (int i) { volatile int x = 5; if (i == 0) b = &x; else f (i - 1); } int main () { volatile int y = 7; a = &y; f (100); return b > a ? 0 : 1; } ], glib_cv_stack_grows=yes , glib_cv_stack_grows=no ,) ]) in the cross-compile case, this fails. it's kind of overkill considering how few arches out there actually grow the stack up. this should have fallback like: case $host_cpu in hppa*|metag*) glib_cv_stack_grows=yes ;; *) glib_cv_stack_grows=no ;; esac
It is really a leftover. Nothing in glib is using the outcome of this test anymore.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/1092.