summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutil/crossgcc/buildgcc9
1 files changed, 9 insertions, 0 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index b79c5f6ac9..71f4e16b1d 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -99,6 +99,15 @@ searchgnu()
fi
fi
done
+ # A workaround for XxxBSD, whose nongnu patch and tar also work.
+ if [ `uname` = "FreeBSD" -o `uname` = "NetBSD" ]; then
+ if [ $1 != "make" ]; then
+ if test -x "`which $1 2>/dev/null`"; then
+ echo $1
+ return
+ fi
+ fi
+ fi
printf "${RED}ERROR:${red} Missing toolchain: $1${NC}\n" >&2
exit 1
}