/[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.65 Revision 1.66
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.65 2004/07/27 19:25:49 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.66 2004/07/28 02:18:38 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"
410 410
411etexec-flags() { 411etexec-flags() {
412 # if you're not using a hardened compiler you wont need this 412 # if you're not using a hardened compiler you wont need this
413 # PIC/no-pic kludge in the first place. 413 # PIC/no-pic kludge in the first place.
414 has_hardened || return 0 414 has_hardened || return 0
415 # this kludge breaks on amd64, and probably other -fPIC dependant
416 # archs.
417 use amd64 && return 0
415 418
416 if has_pie || has_pic; then 419 if has_pie || has_pic; then
417 [ -z "`is-flag -fno-pic`" ] && 420 [ -z "`is-flag -fno-pic`" ] &&
418 export CFLAGS="${CFLAGS} `test_flag -fno-pic`" 421 export CFLAGS="${CFLAGS} `test_flag -fno-pic`"
419 [ -z "`is-flag -nopie`" ] && 422 [ -z "`is-flag -nopie`" ] &&

Legend:
Removed from v.1.65  
changed lines
  Added in v.1.66

  ViewVC Help
Powered by ViewVC 1.1.20