From d5c664d150b60960f248898b02ec6fd07be2beb4 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 24 May 2006 08:12:48 +0000 Subject: When /usr/lib/distcc/bin does not exist, only add a maximum of one distcc to CC and CXX for bug #84150. svn path=/main/trunk/; revision=3408 --- bin/ebuild.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'bin/ebuild.sh') diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 31f32ed8a..bfe9e072d 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1348,8 +1348,12 @@ if [ "$*" != "depend" ] && [ "$*" != "clean" ] && [ "$*" != "setup" ]; then export PATH="/usr/lib/distcc/bin:${PATH}" [ ! -z "${DISTCC_LOG}" ] && addwrite "$(dirname ${DISTCC_LOG})" elif which distcc &>/dev/null; then - export CC="distcc $CC" - export CXX="distcc $CXX" + if ! hasq distcc $CC; then + export CC="distcc $CC" + fi + if ! hasq distcc $CXX; then + export CXX="distcc $CXX" + fi fi fi -- cgit v1.2.3-1-g7c22