Merge pull request #1485 from pullmoll/xbps-src
xbps-src: Use CCACHE_PREFIX for ccache+distcc
This commit is contained in:
commit
252a642f83
1 changed files with 6 additions and 2 deletions
6
xbps-src
6
xbps-src
|
@ -535,10 +535,14 @@ else
|
||||||
mkdir -p $CCACHE_DIR
|
mkdir -p $CCACHE_DIR
|
||||||
fi
|
fi
|
||||||
if [ -n "$XBPS_DISTCC" ]; then
|
if [ -n "$XBPS_DISTCC" ]; then
|
||||||
|
if [ -n "$XBPS_CCACHE" ]; then
|
||||||
|
export CCACHE_PREFIX="/usr/bin/distcc"
|
||||||
|
else
|
||||||
DISTCCPATH="/usr/lib/distcc/bin"
|
DISTCCPATH="/usr/lib/distcc/bin"
|
||||||
|
export PATH="$DISTCCPATH:$PATH"
|
||||||
|
fi
|
||||||
export DISTCC_DIR="$XBPS_HOSTDIR/distcc-${XBPS_CROSS_BUILD:-${XBPS_MACHINE}}"
|
export DISTCC_DIR="$XBPS_HOSTDIR/distcc-${XBPS_CROSS_BUILD:-${XBPS_MACHINE}}"
|
||||||
export DISTCC_HOSTS="$XBPS_DISTCC_HOSTS"
|
export DISTCC_HOSTS="$XBPS_DISTCC_HOSTS"
|
||||||
export PATH="$DISTCCPATH:$PATH"
|
|
||||||
mkdir -p $DISTCC_DIR
|
mkdir -p $DISTCC_DIR
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue