/[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.171 Revision 1.172
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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.171 2012/05/30 07:59:51 jlec Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.172 2012/05/31 00:24:47 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
204# Add extra <flags> to your current {C,CXX,F,FC}FLAGS. 204# Add extra <flags> to your current {C,CXX,F,FC}FLAGS.
205append-flags() { 205append-flags() {
206 [[ $# -eq 0 ]] && return 0 206 [[ $# -eq 0 ]] && return 0
207 case " $* " in 207 case " $* " in
208 *' '-[DIU]*) eqawarn 'please use append-cppflags for preprocessor flags' ;; 208 *' '-[DIU]*) eqawarn 'please use append-cppflags for preprocessor flags' ;;
209 *' '-L*|\
209 *' '-L*) eqawarn 'please use append-ldflags for linker flags' ;; 210 *' '-Wl,*') eqawarn 'please use append-ldflags for linker flags' ;;
210 esac 211 esac
211 append-cflags "$@" 212 append-cflags "$@"
212 append-cxxflags "$@" 213 append-cxxflags "$@"
213 append-fflags "$@" 214 append-fflags "$@"
214 return 0 215 return 0

Legend:
Removed from v.1.171  
changed lines
  Added in v.1.172

  ViewVC Help
Powered by ViewVC 1.1.20