gcj: reverse distcc and ccache checks as distcc should take priority

This commit is contained in:
Danny Rawlins 2011-10-31 23:22:14 +11:00
parent 3628071268
commit 9171532c55

View File

@ -28,10 +28,10 @@ build() {
--with-system-zlib \
--with-pkgversion="CRUX"
if [ -n "$(pkginfo -i | grep '^ccache ')" ]; then
CC="/usr/bin/ccache"
elif [ -n "$(pkginfo -i | grep '^distcc ')" ]; then
if [ -n "$(pkginfo -i | grep '^distcc ')" ]; then
CC="/usr/bin/distcc"
elif [ -n "$(pkginfo -i | grep '^ccache ')" ]; then
CC="/usr/bin/ccache"
fi
make \