From 027dcae26afbe794cd4eef929f8bdc27bb602880 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 11 Jun 2016 23:09:25 -0400 Subject: mysql-cmake/mysql-multilib eclasses: set STACK_DIRECTION to fix cross-compiles --- eclass/toolchain-funcs.eclass | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'eclass/toolchain-funcs.eclass') diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index cf95d04ad66c..e794559bbcfb 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -221,6 +221,21 @@ tc-is-static-only() { [[ ${host} == *-mint* ]] } +# @FUNCTION: tc-stack-grows-down +# @DESCRIPTION: +# Return shell true if the stack grows down. This is the default behavior +# for the vast majority of systems out there and usually projects shouldn't +# care about such internal details. +tc-stack-grows-down() { + # List the few that grow up. + case ${ARCH} in + hppa|metag) return 1 ;; + esac + + # Assume all others grow down. + return 0 +} + # @FUNCTION: tc-export_build_env # @USAGE: [compiler variables] # @DESCRIPTION: -- cgit v1.2.3-65-gdbad