diff options
author | 2013-09-30 01:34:25 +0000 | |
---|---|---|
committer | 2013-09-30 01:34:25 +0000 | |
commit | 9b6f64cae447b226f185c479fbaa831e700324d7 (patch) | |
tree | 3ed3432c28c390b06fbf6452eb918dd535223ee2 /eclass | |
parent | vanilla-3.11.2 + genpatches-3.11-4 + grsecurity-2.9.1-3.11.2-201309281103 (diff) | |
download | gentoo-2-9b6f64cae447b226f185c479fbaa831e700324d7.tar.gz gentoo-2-9b6f64cae447b226f185c479fbaa831e700324d7.tar.bz2 gentoo-2-9b6f64cae447b226f185c479fbaa831e700324d7.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')
-rw-r--r-- | eclass/toolchain-funcs.eclass | 8 |
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 |