/[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.68 Revision 1.69
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
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.68 2004/08/08 21:07:21 lv Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.69 2004/09/14 02:06:36 lv 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"
310 done 310 done
311 return 1 311 return 1
312} 312}
313 313
314has_hardened() { 314has_hardened() {
315 test_version_info Hardened 315 test_version_info Hardened && return 0
316 # the specs file wont exist unless gcc has GCC_SPECS support
317 [ -f "${GCC_SPECS}" -a "${GCC_SPECS}" != "${GCC_SPECS/hardened/}" ] && \
318 return 0
316 return $? 319 return 1
317} 320}
318 321
319has_pic() { 322has_pic() {
320 [ "${CFLAGS/-fPIC}" != "${CFLAGS}" ] && return 0 323 [ "${CFLAGS/-fPIC}" != "${CFLAGS}" ] && return 0
321 [ "${CFLAGS/-fpic}" != "${CFLAGS}" ] && return 0 324 [ "${CFLAGS/-fpic}" != "${CFLAGS}" ] && return 0

Legend:
Removed from v.1.68  
changed lines
  Added in v.1.69

  ViewVC Help
Powered by ViewVC 1.1.20