1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-21 23:38:49 -05:00

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

View File

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