diff --git a/util/build.sh b/util/build.sh index cbcd9a416..6bf7a6d69 100755 --- a/util/build.sh +++ b/util/build.sh @@ -17,6 +17,18 @@ if ! [ -x "$(command -v autoreconf)" ]; then exit 1 fi +if ! [ -x "$(command -v as)" ]; then + echo 'Error: as is not installed. Install as and try again.' >&2 + echo 'On Debian-like systems: apt install binutils' >&2 + exit 1 +fi + +if ! [ -x "$(command -v ld)" ]; then + echo 'Error: ld is not installed. Install ld and try again.' >&2 + echo 'On Debian-like systems: apt install binutils' >&2 + exit 1 +fi + function cmd_pref() { if type -p "$2" > /dev/null; then eval "$1=$2"