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