summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-06-11 23:09:25 -0400
committerMike Frysinger <vapier@gentoo.org>2016-06-11 23:57:19 -0400
commit027dcae26afbe794cd4eef929f8bdc27bb602880 (patch)
tree972a6b678726774d1aab0860a2dab0e5019187c9 /eclass/mysql-multilib-r1.eclass
parentdev-python/pygccxml: bump to 1.7.5, update to new HOMEPAGE and SRC_URI. (diff)
downloadgentoo-027dcae26afbe794cd4eef929f8bdc27bb602880.tar.gz
gentoo-027dcae26afbe794cd4eef929f8bdc27bb602880.tar.bz2
gentoo-027dcae26afbe794cd4eef929f8bdc27bb602880.zip
mysql-cmake/mysql-multilib eclasses: set STACK_DIRECTION to fix cross-compiles
Diffstat (limited to 'eclass/mysql-multilib-r1.eclass')
-rw-r--r--eclass/mysql-multilib-r1.eclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/eclass/mysql-multilib-r1.eclass b/eclass/mysql-multilib-r1.eclass
index 40ef8f544283..858b9b65d6c4 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