summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Tilley <lv@gentoo.org>2004-09-14 02:06:36 +0000
committerTravis Tilley <lv@gentoo.org>2004-09-14 02:06:36 +0000
commit0fb3f7bcee9be00b624adaa06f6a449758789a74 (patch)
treef3b7e3a43bfb106aa4760364d980b1cc6d832e61 /eclass/flag-o-matic.eclass
parenttidy (diff)
downloadhistorical-0fb3f7bcee9be00b624adaa06f6a449758789a74.tar.gz
historical-0fb3f7bcee9be00b624adaa06f6a449758789a74.tar.bz2
historical-0fb3f7bcee9be00b624adaa06f6a449758789a74.zip
update has_hardened for GCC_SPECS support
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r--eclass/flag-o-matic.eclass9
1 files changed, 6 insertions, 3 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index 564e59898da3..2342e1db1dbf 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.68 2004/08/08 21:07:21 lv Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.69 2004/09/14 02:06:36 lv Exp $
#
# Author Bart Verwilst <verwilst@gentoo.org>
@@ -312,8 +312,11 @@ get-flag() {
}
has_hardened() {
- test_version_info Hardened
- return $?
+ test_version_info Hardened && return 0
+ # the specs file wont exist unless gcc has GCC_SPECS support
+ [ -f "${GCC_SPECS}" -a "${GCC_SPECS}" != "${GCC_SPECS/hardened/}" ] && \
+ return 0
+ return 1
}
has_pic() {