summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/ebuild.sh8
1 files changed, 6 insertions, 2 deletions
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