summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-09-30 01:34:25 +0000
committerMike Frysinger <vapier@gentoo.org>2013-09-30 01:34:25 +0000
commita60cd3475876343b2ff445c7f1736057540d179a (patch)
treefa45f7c717b71757c8196dc8fb61cbabf6ac62ad /eclass/toolchain-funcs.eclass
parentvanilla-3.11.2 + genpatches-3.11-4 + grsecurity-2.9.1-3.11.2-201309281103 (diff)
downloadhistorical-a60cd3475876343b2ff445c7f1736057540d179a.tar.gz
historical-a60cd3475876343b2ff445c7f1736057540d179a.tar.bz2
historical-a60cd3475876343b2ff445c7f1736057540d179a.zip
tc-export_build_env: also export XXX_FOR_BUILD env vars to match the BUILD_XXX as many packages use those instead
Diffstat (limited to 'eclass/toolchain-funcs.eclass')
-rw-r--r--eclass/toolchain-funcs.eclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
index 37426b99f95f..2198c4e15a91 100644
--- a/eclass/toolchain-funcs.eclass
+++ b/eclass/toolchain-funcs.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.121 2013/05/14 20:40:34 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.122 2013/09/30 01:34:25 vapier Exp $
# @ECLASS: toolchain-funcs.eclass
# @MAINTAINER:
@@ -224,6 +224,12 @@ tc-export_build_env() {
: ${BUILD_CPPFLAGS:=}
: ${BUILD_LDFLAGS:=}
export BUILD_{C,CXX,CPP,LD}FLAGS
+
+ # Some packages use XXX_FOR_BUILD.
+ local v
+ for v in BUILD_{C,CXX,CPP,LD}FLAGS ; do
+ export ${v#BUILD_}_FOR_BUILD="${!v}"
+ done
}
# @FUNCTION: tc-env_build