Added build.sh checks for as and ld to be installed
This commit is contained in:
@@ -17,6 +17,18 @@ if ! [ -x "$(command -v autoreconf)" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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() {
|
function cmd_pref() {
|
||||||
if type -p "$2" > /dev/null; then
|
if type -p "$2" > /dev/null; then
|
||||||
eval "$1=$2"
|
eval "$1=$2"
|
||||||
|
|||||||
Reference in New Issue
Block a user