/[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.136 Revision 1.137
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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.136 2009/05/23 23:12:07 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.137 2009/05/24 00:33:33 mr_bones_ 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
138 138
139# @FUNCTION: append-cflags 139# @FUNCTION: append-cflags
140# @USAGE: <flags> 140# @USAGE: <flags>
141# @DESCRIPTION: 141# @DESCRIPTION:
142# Add extra <flags> to the current CFLAGS. 142# Add extra <flags> to the current CFLAGS.
143append-cppflags() { 143append-cflags() {
144 [[ -z $* ]] && return 0 144 [[ -z $* ]] && return 0
145 export CFLAGS="${CFLAGS} $*" 145 export CFLAGS="${CFLAGS} $*"
146 return 0 146 return 0
147} 147}
148 148

Legend:
Removed from v.1.136  
changed lines
  Added in v.1.137

  ViewVC Help
Powered by ViewVC 1.1.20