diff options
author | Gordon Malm <gengor@gentoo.org> | 2009-01-08 03:46:06 +0000 |
---|---|---|
committer | Gordon Malm <gengor@gentoo.org> | 2009-01-08 03:46:06 +0000 |
commit | 76bcca5cd312368b342d4aca56d8cc3f24ebca5d (patch) | |
tree | f51649519ee1647823d1f6ef7090ce527499b5d1 /eclass/toolchain-funcs.eclass | |
parent | add ~amd64 kw for bug 253464 (diff) | |
download | historical-76bcca5cd312368b342d4aca56d8cc3f24ebca5d.tar.gz historical-76bcca5cd312368b342d4aca56d8cc3f24ebca5d.tar.bz2 historical-76bcca5cd312368b342d4aca56d8cc3f24ebca5d.zip |
Add exception for >=gcc-4 to gcc-specs-ssp-to-all func
Diffstat (limited to 'eclass/toolchain-funcs.eclass')
-rw-r--r-- | eclass/toolchain-funcs.eclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index bc982bd39e15..9d550b12e094 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.80 2009/01/02 22:14:18 gengor Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.81 2009/01/08 03:46:06 gengor Exp $ # @ECLASS: toolchain-funcs.eclass # @MAINTAINER: @@ -371,6 +371,8 @@ gcc-specs-ssp() { } # Returns true if gcc upgrades fstack-protector to fstack-protector-all gcc-specs-ssp-to-all() { + # GCC 4.x does not have -fno-stack-protector-all by default + [[ $(gcc-major-version) -ge 4 ]] && return 1 local directive directive=$(gcc-specs-directive cc1) return $([[ ${directive/\{!fno-stack-protector-all:} != ${directive} ]]) |