From 9311d7e485fb2459afc573bcc84ddd7e31569a92 Mon Sep 17 00:00:00 2001 From: Brandon Hale Date: Tue, 6 Apr 2004 04:25:16 +0000 Subject: fix small thinko in flag-o-matic.eclass has_pie --- eclass/flag-o-matic.eclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'eclass/flag-o-matic.eclass') 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 @@ -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 -- cgit v1.2.3-65-gdbad