/[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.169 Revision 1.170
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.169 2012/02/26 12:09:44 blueness Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.170 2012/05/26 02:55:02 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
177# @USAGE: <flags> 177# @USAGE: <flags>
178# @DESCRIPTION: 178# @DESCRIPTION:
179# Add extra <flags> to your current {C,CXX,F,FC}FLAGS. 179# Add extra <flags> to your current {C,CXX,F,FC}FLAGS.
180append-flags() { 180append-flags() {
181 [[ $# -eq 0 ]] && return 0 181 [[ $# -eq 0 ]] && return 0
182 case " $* " in
183 *' '-[DIU]*) eqawarn 'please use append-cppflags for preprocessor flags' ;;
184 *' '-L*) eqawarn 'please use append-ldflags for linker flags' ;;
185 esac
182 append-cflags "$@" 186 append-cflags "$@"
183 append-cxxflags "$@" 187 append-cxxflags "$@"
184 append-fflags "$@" 188 append-fflags "$@"
185 return 0 189 return 0
186} 190}

Legend:
Removed from v.1.169  
changed lines
  Added in v.1.170

  ViewVC Help
Powered by ViewVC 1.1.20