summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hill <dirtyepic@gentoo.org>2011-11-11 07:06:25 +0000
committerRyan Hill <dirtyepic@gentoo.org>2011-11-11 07:06:25 +0000
commit0326807cd74218c0d4b3aecf174821ea7128e205 (patch)
treec481ba28e0c462b2057305915a9c7a993f333f59 /eclass/flag-o-matic.eclass
parentVersion bump and remove old. (diff)
downloadgentoo-2-0326807cd74218c0d4b3aecf174821ea7128e205.tar.gz
gentoo-2-0326807cd74218c0d4b3aecf174821ea7128e205.tar.bz2
gentoo-2-0326807cd74218c0d4b3aecf174821ea7128e205.zip
Test that appended flags are valid. This allows people to add flags that were unsupported in earlier releases without needing to do version checking.
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r--eclass/flag-o-matic.eclass12
1 files changed, 6 insertions, 6 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index 217b736c0e2c..7ae62e14d3de 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -1,6 +1,6 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2011 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.156 2011/10/08 18:37:30 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.157 2011/11/11 07:06:25 dirtyepic Exp $
# @ECLASS: flag-o-matic.eclass
# @MAINTAINER:
@@ -154,7 +154,7 @@ append-cppflags() {
# Add extra <flags> to the current CFLAGS.
append-cflags() {
[[ -z $* ]] && return 0
- export CFLAGS="${CFLAGS} $*"
+ export CFLAGS=$(test-flags-CC ${CFLAGS} $*)
return 0
}
@@ -164,7 +164,7 @@ append-cflags() {
# Add extra <flags> to the current CXXFLAGS.
append-cxxflags() {
[[ -z $* ]] && return 0
- export CXXFLAGS="${CXXFLAGS} $*"
+ export CXXFLAGS=$(test-flags-CXX ${CXXFLAGS} $*)
return 0
}
@@ -174,8 +174,8 @@ append-cxxflags() {
# Add extra <flags> to the current {F,FC}FLAGS.
append-fflags() {
[[ -z $* ]] && return 0
- export FFLAGS="${FFLAGS} $*"
- export FCFLAGS="${FCFLAGS} $*"
+ export FFLAGS=$(test-flags-F77 ${FFLAGS} $*)
+ export FCFLAGS=$(test-flags-FC ${FCFLAGS} $*)
return 0
}