From 8333810f0f3176d0df4c6c489128b7477ae67819 Mon Sep 17 00:00:00 2001 From: jahway603 Date: Thu, 26 Sep 2024 10:39:28 -0400 Subject: [PATCH] Added build.sh checks for as and ld to be installed --- util/build.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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"