summaryrefslogtreecommitdiff
path: root/eclass
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
commit1fd0b66c9673fa500a241c975ba944d34ca69265 (patch)
tree24bf071793d046c2cce138fb138f884d122862b9 /eclass
parenttidy (Manifest recommit) (diff)
downloadgentoo-2-1fd0b66c9673fa500a241c975ba944d34ca69265.tar.gz
gentoo-2-1fd0b66c9673fa500a241c975ba944d34ca69265.tar.bz2
gentoo-2-1fd0b66c9673fa500a241c975ba944d34ca69265.zip
update has_hardened for GCC_SPECS support
Diffstat (limited to '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() {