commit: b225c397c78dc425644d9a4d76344a517ee7f106 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> AuthorDate: Sun Jun 12 03:09:25 2016 +0000 Commit: Brian Evans <grknight <AT> gentoo <DOT> org> CommitDate: Tue Sep 27 16:44:00 2016 +0000 URL: https://gitweb.gentoo.org/proj/mysql.git/commit/?id=b225c397
mysql-cmake/mysql-multilib eclasses: set STACK_DIRECTION to fix cross-compiles eclass/mysql-multilib-r1.eclass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eclass/mysql-multilib-r1.eclass b/eclass/mysql-multilib-r1.eclass index 40ef8f5..858b9b6 100644 --- a/eclass/mysql-multilib-r1.eclass +++ b/eclass/mysql-multilib-r1.eclass @@ -401,6 +401,9 @@ multilib_src_configure() { -DWITH_DEFAULT_FEATURE_SET=0 -DINSTALL_SYSTEMD_UNITDIR="$(systemd_get_systemunitdir)" -DENABLE_STATIC_LIBS=$(usex static-libs) + # The build forces this to be defined when cross-compiling. We pass it + # all the time for simplicity and to make sure it is actually correct. + -DSTACK_DIRECTION=$(tc-stack-grows-down && echo -1 || echo 1) ) if use test ; then