summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorBrandon Hale <tseng@gentoo.org>2004-04-06 04:25:16 +0000
committerBrandon Hale <tseng@gentoo.org>2004-04-06 04:25:16 +0000
commit7ced7f9cc9d59b71ef2bcf2c73b58bfd86ced04b (patch)
tree89ef02ecc52cb58f013ea2332493520850a6695c /eclass
parentadd inherit eutils (diff)
downloadgentoo-2-7ced7f9cc9d59b71ef2bcf2c73b58bfd86ced04b.tar.gz
gentoo-2-7ced7f9cc9d59b71ef2bcf2c73b58bfd86ced04b.tar.bz2
gentoo-2-7ced7f9cc9d59b71ef2bcf2c73b58bfd86ced04b.zip
fix small thinko in flag-o-matic.eclass has_pie
Diffstat (limited to 'eclass')
-rw-r--r--eclass/flag-o-matic.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index 21cc2c45dd92..b28a6c001f0e 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.42 2004/04/06 03:45:00 tseng Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.43 2004/04/06 04:25:16 tseng Exp $
#
# Author Bart Verwilst <verwilst@gentoo.org>
@@ -274,8 +274,8 @@ has_pic() {
}
has_pie() {
- [ "${CFLAGS/-fPIC}" != "${CFLAGS}" ] && return 0
- [ "${CFLAGS/-fpic}" != "${CFLAGS}" ] && return 0
+ [ "${CFLAGS/-fPIE}" != "${CFLAGS}" ] && return 0
+ [ "${CFLAGS/-fpie}" != "${CFLAGS}" ] && return 0
[ has_version sys-devel/hardened-gcc ] && return 0
[ ! -z "`${CC/ .*/} --version| grep pie`" ] && return 0
return 1