makepkg: Set CCACHE_BASEDIR to make paths in $srcdir relative

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Jan Alexander Steffens (heftig) 2015-09-15 22:17:04 +02:00 committed by Allan McRae
parent 2627b423ff
commit 2c72c8b822
1 changed files with 1 additions and 0 deletions

View File

@ -863,6 +863,7 @@ run_build() {
if check_buildoption "distcc" "y"; then
if (( ccache )); then
export CCACHE_PREFIX="${CCACHE_PREFIX:+$CCACHE_PREFIX }distcc"
export CCACHE_BASEDIR="$srcdir"
elif [[ -d /usr/lib/distcc/bin ]]; then
export PATH="/usr/lib/distcc/bin:$PATH"
fi