summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorGordon Malm <gengor@gentoo.org>2009-01-21 00:42:20 +0000
committerGordon Malm <gengor@gentoo.org>2009-01-21 00:42:20 +0000
commit51d30d1fd5391a38a3da6a0277d50d6fa641846f (patch)
treed3d203e1c35b800cb28bba30ea0c8a9f12465a15 /eclass
parentversion bump, bug #254886 (diff)
downloadgentoo-2-51d30d1fd5391a38a3da6a0277d50d6fa641846f.tar.gz
gentoo-2-51d30d1fd5391a38a3da6a0277d50d6fa641846f.tar.bz2
gentoo-2-51d30d1fd5391a38a3da6a0277d50d6fa641846f.zip
Add append-cxxflags function
Diffstat (limited to 'eclass')
-rw-r--r--eclass/flag-o-matic.eclass12
1 files changed, 11 insertions, 1 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index 9e5e514b34ff..66700eeafd99 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.131 2009/01/08 11:29:06 gengor Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.132 2009/01/21 00:42:20 gengor Exp $
# @ECLASS: flag-o-matic.eclass
# @MAINTAINER:
@@ -136,6 +136,16 @@ append-cppflags() {
return 0
}
+# @FUNCTION: append-cxxflags
+# @USAGE: <flags>
+# @DESCRIPTION:
+# Add extra <flags> to the current CXXFLAGS.
+append-cxxflags() {
+ [[ -z $* ]] && return 0
+ export CXXFLAGS="${CXXFLAGS} $*"
+ return 0
+}
+
# @FUNCTION: append-fflags
# @USAGE: <flags>
# @DESCRIPTION: