summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-05-09 17:23:57 +0200
committerMichał Górny <mgorny@gentoo.org>2018-05-09 17:25:52 +0200
commitc8fada559c714086a91f6bcbd0c6f12b15b78213 (patch)
tree837d3a428f2d7e03d85a0924c3a8014045d0e351 /eclass/scons-utils.eclass
parentdev-util/scons: Support envvar pass-through override (diff)
downloadgentoo-c8fada559c714086a91f6bcbd0c6f12b15b78213.tar.gz
gentoo-c8fada559c714086a91f6bcbd0c6f12b15b78213.tar.bz2
gentoo-c8fada559c714086a91f6bcbd0c6f12b15b78213.zip
scons-utils.eclass: Force pass-through of envvars (in 3.0.1-r1+)
Use GENTOO_SCONS_ENV_PASSTHROUGH variable introduced by scons-3.0.1-r1 patch to force passing through of all environment variables when building ebuilds.
Diffstat (limited to 'eclass/scons-utils.eclass')
-rw-r--r--eclass/scons-utils.eclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/eclass/scons-utils.eclass b/eclass/scons-utils.eclass
index 02c9061ba95d..4ffa92ae4a35 100644
--- a/eclass/scons-utils.eclass
+++ b/eclass/scons-utils.eclass
@@ -135,6 +135,9 @@ escons() {
_scons_clean_makeopts
fi
+ # pass ebuild environment variables through!
+ local -x GENTOO_SCONS_ENV_PASSTHROUGH=1
+
set -- scons ${SCONSOPTS} ${EXTRA_ESCONS} "${@}"
echo "${@}" >&2
"${@}"