summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-09-16 06:40:21 +0000
committerMike Frysinger <vapier@gentoo.org>2008-09-16 06:40:21 +0000
commitab8d241a26f6c20f3bc08858e62c38f90e989b58 (patch)
treef980061577331d1f3ca8d2db1da2576f6d017bab /eclass
parentVersion bump in a new SLOT (diff)
downloadgentoo-2-ab8d241a26f6c20f3bc08858e62c38f90e989b58.tar.gz
gentoo-2-ab8d241a26f6c20f3bc08858e62c38f90e989b58.tar.bz2
gentoo-2-ab8d241a26f6c20f3bc08858e62c38f90e989b58.zip
tc-export: make sure the variable requested for export is a valid variable
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain-funcs.eclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
index 4afbc5d72726..1de8eaec052d 100644
--- a/eclass/toolchain-funcs.eclass
+++ b/eclass/toolchain-funcs.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.78 2008/07/03 05:26:47 dberkholz Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.79 2008/09/16 06:40:21 vapier Exp $
# @ECLASS: toolchain-funcs.eclass
# @MAINTAINER:
@@ -116,6 +116,7 @@ tc-getBUILD_CC() {
tc-export() {
local var
for var in "$@" ; do
+ [[ $(type -t tc-get${var}) != "function" ]] && die "tc-export: invalid export variable '${var}'"
eval tc-get${var} > /dev/null
done
}