/[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.76 Revision 1.77
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.76 2004/10/30 00:00:14 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.77 2004/11/13 07:07:08 solar 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"
420 420
421etexec-flags() { 421etexec-flags() {
422 # if you're not using a hardened compiler you wont need this 422 # if you're not using a hardened compiler you wont need this
423 # PIC/no-pic kludge in the first place. 423 # PIC/no-pic kludge in the first place.
424 has_hardened || return 0 424 has_hardened || return 0
425 # this kludge breaks on amd64, and probably other -fPIC dependant
426 # archs.
427 use amd64 && return 0 425 use amd64 && return 0
426 use mips && return 0
428 427
429 if has_pie || has_pic; then 428 if has_pie || has_pic; then
430 [ -z "`is-flag -fno-pic`" ] && 429 [ -z "`is-flag -fno-pic`" ] &&
431 export CFLAGS="${CFLAGS} `test_flag -fno-pic`" 430 export CFLAGS="${CFLAGS} `test_flag -fno-pic`"
432 [ -z "`is-flag -nopie`" ] && 431 [ -z "`is-flag -nopie`" ] &&

Legend:
Removed from v.1.76  
changed lines
  Added in v.1.77

  ViewVC Help
Powered by ViewVC 1.1.20