diff options
author | Brandon Hale <tseng@gentoo.org> | 2004-04-09 22:21:35 +0000 |
---|---|---|
committer | Brandon Hale <tseng@gentoo.org> | 2004-04-09 22:21:35 +0000 |
commit | 6d80224540ab420b767bb53a6b5de53e5517afdc (patch) | |
tree | 3a10a42df5507ab91ffa9690551e054aef16af0c /eclass | |
parent | Import (diff) | |
download | historical-6d80224540ab420b767bb53a6b5de53e5517afdc.tar.gz historical-6d80224540ab420b767bb53a6b5de53e5517afdc.tar.bz2 historical-6d80224540ab420b767bb53a6b5de53e5517afdc.zip |
hardened flag-o fixes
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/flag-o-matic.eclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index bd998343220b..7c1ad8dcc382 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.44 2004/04/08 21:53:15 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.45 2004/04/09 22:21:35 tseng Exp $ # # Author Bart Verwilst <verwilst@gentoo.org> @@ -270,7 +270,7 @@ get-flag() { has_pic() { [ "${CFLAGS/-fPIC}" != "${CFLAGS}" ] && return 0 [ "${CFLAGS/-fpic}" != "${CFLAGS}" ] && return 0 - [ has_version sys-devel/hardened-gcc ] && return 0 + has_version sys-devel/hardened-gcc && return 0 [ ! -z "`${CC/ .*/} --version| grep pie`" ] && return 0 return 1 } @@ -278,14 +278,14 @@ has_pic() { has_pie() { [ "${CFLAGS/-fPIE}" != "${CFLAGS}" ] && return 0 [ "${CFLAGS/-fpie}" != "${CFLAGS}" ] && return 0 - [ has_version sys-devel/hardened-gcc ] && return 0 + has_version sys-devel/hardened-gcc && return 0 [ ! -z "`${CC/ .*/} --version| grep pie`" ] && return 0 return 1 } has_ssp() { [ "${CFLAGS/-fstack-protector}" != "${CFLAGS}" ] && return 0 - [ has_version sys-devel/hardened-gcc ] && return 0 + has_version sys-devel/hardened-gcc && return 0 [ ! -z "`${CC/ .*/} --version| grep ssp`" ] && return 0 return 1 } |