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/toolchain-funcs.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/toolchain-funcs.eclass')
-rw-r--r--eclass/toolchain-funcs.eclass15
1 files changed, 15 insertions, 0 deletions
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: