summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ChangeLog6
-rw-r--r--eclass/flag-o-matic.eclass12
2 files changed, 11 insertions, 7 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index f2d727f8c3e0..b5d9f49afe21 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for eclass directory
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.6 2011/11/10 19:09:17 pacho Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.7 2011/11/11 07:06:25 dirtyepic Exp $
+
+ 11 Nov 2011; Ryan Hill <dirtyepic@gentoo.org> flag-o-matic.eclass:
+ Test that appended flags are valid. This allows people to add flags that were
+ unsupported in earlier releases without needing to do version checking.
10 Nov 2011; Pacho Ramos <pacho@gentoo.org> gtk-sharp-module.eclass:
gnome-desktop-sharp stuff need gnome-desktop:2, bug #389181 by Kacper
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
}