Cache vars need only to be global to be preserved across calls.
Exporting them is undesired.
---
 eclass/scons-utils.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/scons-utils.eclass b/eclass/scons-utils.eclass
index 4da2c4a..82e45e3 100644
--- a/eclass/scons-utils.eclass
+++ b/eclass/scons-utils.eclass
@@ -177,7 +177,7 @@ _scons_clean_makeopts() {
                debug-print "Cache hit: [${SCONSOPTS}]"
                return
        fi
-       export _SCONS_CACHE_MAKEOPTS=${*}
+       _SCONS_CACHE_MAKEOPTS=${*}
 
        while [[ ${#} -gt 0 ]]; do
                case ${1} in
@@ -236,7 +236,7 @@ _scons_clean_makeopts() {
        done
 
        set -- ${new_makeopts}
-       export _SCONS_CACHE_SCONSOPTS=${*}
+       _SCONS_CACHE_SCONSOPTS=${*}
        debug-print "New SCONSOPTS: [${*}]"
        SCONSOPTS=${*}
 }
-- 
2.6.4


Reply via email to