summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2014-10-15 22:30:56 +0000
committerAnthony G. Basile <blueness@gentoo.org>2014-10-15 22:30:56 +0000
commit69e64df4e6af26bc214041ab3473bc1b8a5f3c4c (patch)
tree185bc9323e3607d4b3ee69f26b12b194e7c23cc5 /eclass
parentClean up return code in gcc-specs functions in toolchain-funcs.eclass (diff)
downloadgentoo-2-69e64df4e6af26bc214041ab3473bc1b8a5f3c4c.tar.gz
gentoo-2-69e64df4e6af26bc214041ab3473bc1b8a5f3c4c.tar.bz2
gentoo-2-69e64df4e6af26bc214041ab3473bc1b8a5f3c4c.zip
Add gcc-specs-stack-check() to toolchain-funcs.eclass
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain-funcs.eclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
index 832db02cd360..e1b5d0ce7f27 100644
--- a/eclass/toolchain-funcs.eclass
+++ b/eclass/toolchain-funcs.eclass
@@ -1,6 +1,6 @@
n Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.128 2014/10/15 22:27:25 blueness Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.129 2014/10/15 22:30:56 blueness Exp $
# @ECLASS: toolchain-funcs.eclass
# @MAINTAINER:
@@ -610,6 +610,12 @@ gcc-specs-nostrict() {
directive=$(gcc-specs-directive cc1)
[[ "${directive/\{!fstrict-overflow:}" != "${directive}" ]]
}
+# Returns true if gcc builds with fstack-check
+gcc-specs-stack-check() {
+ local directive
+ directive=$(gcc-specs-directive cc1)
+ [[ "${directive/\{!fno-stack-check:}" != "${directive}" ]]
+}
# @FUNCTION: gen_usr_ldscript