From: | "Gordon Malm (gengor)" <gengor@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in eclass: flag-o-matic.eclass |
Date: | Wed, 21 Jan 2009 00:42:21 |
Message-Id: | E1LPRAi-0001Dp-4d@stork.gentoo.org |
1 | gengor 09/01/21 00:42:20 |
2 | |
3 | Modified: flag-o-matic.eclass |
4 | Log: |
5 | Add append-cxxflags function |
6 | |
7 | Revision Changes Path |
8 | 1.132 eclass/flag-o-matic.eclass |
9 | |
10 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/flag-o-matic.eclass?rev=1.132&view=markup |
11 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/flag-o-matic.eclass?rev=1.132&content-type=text/plain |
12 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/flag-o-matic.eclass?r1=1.131&r2=1.132 |
13 | |
14 | Index: flag-o-matic.eclass |
15 | =================================================================== |
16 | RCS file: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v |
17 | retrieving revision 1.131 |
18 | retrieving revision 1.132 |
19 | diff -u -r1.131 -r1.132 |
20 | --- flag-o-matic.eclass 8 Jan 2009 11:29:06 -0000 1.131 |
21 | +++ flag-o-matic.eclass 21 Jan 2009 00:42:20 -0000 1.132 |
22 | @@ -1,6 +1,6 @@ |
23 | # Copyright 1999-2009 Gentoo Foundation |
24 | # Distributed under the terms of the GNU General Public License v2 |
25 | -# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.131 2009/01/08 11:29:06 gengor Exp $ |
26 | +# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.132 2009/01/21 00:42:20 gengor Exp $ |
27 | |
28 | # @ECLASS: flag-o-matic.eclass |
29 | # @MAINTAINER: |
30 | @@ -136,6 +136,16 @@ |
31 | return 0 |
32 | } |
33 | |
34 | +# @FUNCTION: append-cxxflags |
35 | +# @USAGE: <flags> |
36 | +# @DESCRIPTION: |
37 | +# Add extra <flags> to the current CXXFLAGS. |
38 | +append-cxxflags() { |
39 | + [[ -z $* ]] && return 0 |
40 | + export CXXFLAGS="${CXXFLAGS} $*" |
41 | + return 0 |
42 | +} |
43 | + |
44 | # @FUNCTION: append-fflags |
45 | # @USAGE: <flags> |
46 | # @DESCRIPTION: |