From fcf9d2ff4f7bfa47cba7df48e3cc49f3e817d7ce Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 2 Sep 2010 13:15:10 -0700 Subject: Prevent local x variable in ebuild_main() from showing up in environment.bz2. --- bin/ebuild.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/ebuild.sh') diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 5177494f9..f17e63b3e 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -2104,8 +2104,6 @@ ebuild_main() { export EBUILD_MASTER_PID=$BASHPID trap 'exit 1' SIGTERM - local f x - if [[ $EBUILD_PHASE != depend ]] ; then # Force configure scripts that automatically detect ccache to # respect FEATURES="-ccache". @@ -2155,10 +2153,12 @@ ebuild_main() { case "$EBUILD_SH_ARGS" in configure|compile) + local x for x in ASFLAGS CCACHE_DIR CCACHE_SIZE \ CFLAGS CXXFLAGS LDFLAGS LIBCFLAGS LIBCXXFLAGS ; do [[ ${!x+set} = set ]] && export $x done + unset x hasq distcc $FEATURES && [[ -n $DISTCC_DIR ]] && \ [[ ${SANDBOX_WRITE/$DISTCC_DIR} = $SANDBOX_WRITE ]] && \ -- cgit v1.2.3-1-g7c22