/[gentoo-x86]/eclass/flag-o-matic.eclass
Gentoo

Diff of /eclass/flag-o-matic.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.42 Revision 1.43
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.42 2004/04/06 03:45:00 tseng Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.43 2004/04/06 04:25:16 tseng Exp $
4# 4#
5# Author Bart Verwilst <verwilst@gentoo.org> 5# Author Bart Verwilst <verwilst@gentoo.org>
6 6
7ECLASS=flag-o-matic 7ECLASS=flag-o-matic
8INHERITED="$INHERITED $ECLASS" 8INHERITED="$INHERITED $ECLASS"
272 [ ! -z "`${CC/ .*/} --version| grep pie`" ] && return 0 272 [ ! -z "`${CC/ .*/} --version| grep pie`" ] && return 0
273 return 1 273 return 1
274} 274}
275 275
276has_pie() { 276has_pie() {
277 [ "${CFLAGS/-fPIC}" != "${CFLAGS}" ] && return 0 277 [ "${CFLAGS/-fPIE}" != "${CFLAGS}" ] && return 0
278 [ "${CFLAGS/-fpic}" != "${CFLAGS}" ] && return 0 278 [ "${CFLAGS/-fpie}" != "${CFLAGS}" ] && return 0
279 [ has_version sys-devel/hardened-gcc ] && return 0 279 [ has_version sys-devel/hardened-gcc ] && return 0
280 [ ! -z "`${CC/ .*/} --version| grep pie`" ] && return 0 280 [ ! -z "`${CC/ .*/} --version| grep pie`" ] && return 0
281 return 1 281 return 1
282} 282}
283 283

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43

  ViewVC Help
Powered by ViewVC 1.1.20