/[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.163 Revision 1.164
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 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.163 2011/12/28 06:28:55 dirtyepic Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.164 2012/01/13 22:40:29 vapier Exp $
4 4
5# @ECLASS: flag-o-matic.eclass 5# @ECLASS: flag-o-matic.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# toolchain@gentoo.org 7# toolchain@gentoo.org
8# @BLURB: common functions to manipulate and query toolchain flags 8# @BLURB: common functions to manipulate and query toolchain flags
111} 111}
112 112
113# @FUNCTION: filter-flags 113# @FUNCTION: filter-flags
114# @USAGE: <flags> 114# @USAGE: <flags>
115# @DESCRIPTION: 115# @DESCRIPTION:
116# Remove particular <flags> from {C,CPP,CXX,F,FC}FLAGS. Accepts shell globs. 116# Remove particular <flags> from {C,CPP,CXX,F,FC,LD}FLAGS. Accepts shell globs.
117filter-flags() { 117filter-flags() {
118 _filter-hardened "$@" 118 _filter-hardened "$@"
119 local v
120 for v in C CPP CXX F FC LD ; do
119 _filter-var CFLAGS "$@" 121 _filter-var ${v}FLAGS "$@"
120 _filter-var CPPFLAGS "$@" 122 done
121 _filter-var CXXFLAGS "$@"
122 _filter-var FFLAGS "$@"
123 _filter-var FCFLAGS "$@"
124 return 0 123 return 0
125} 124}
126 125
127# @FUNCTION: filter-lfs-flags 126# @FUNCTION: filter-lfs-flags
128# @DESCRIPTION: 127# @DESCRIPTION:

Legend:
Removed from v.1.163  
changed lines
  Added in v.1.164

  ViewVC Help
Powered by ViewVC 1.1.20