diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2014-10-15 22:30:56 +0000 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-10-15 22:30:56 +0000 |
commit | f4b7f0e053445a874c96b5dc43771adc96b590ed (patch) | |
tree | ba909bf116876974d710418e4632bc2a790a2735 /eclass/toolchain-funcs.eclass | |
parent | Clean up return code in gcc-specs functions in toolchain-funcs.eclass (diff) | |
download | historical-f4b7f0e053445a874c96b5dc43771adc96b590ed.tar.gz historical-f4b7f0e053445a874c96b5dc43771adc96b590ed.tar.bz2 historical-f4b7f0e053445a874c96b5dc43771adc96b590ed.zip |
Add gcc-specs-stack-check() to toolchain-funcs.eclass
Diffstat (limited to 'eclass/toolchain-funcs.eclass')
-rw-r--r-- | eclass/toolchain-funcs.eclass | 8 |
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 |