iglupkg: allow for GNU host triple

This commit is contained in:
Ella Stanforth 2022-04-21 10:11:55 +00:00
parent b51517fe91
commit ac0d624c8c

View file

@ -2,7 +2,12 @@
set -e
export HOST_ARCH=$(uname -m)
export HOST_TRIPLE="$HOST_ARCH-unknown-linux-musl"
if uname -o | grep GNU >/dev/null; then
export HOST_TRIPLE="$HOST_ARCH-unknown-linux-gnu"
else
export HOST_TRIPLE="$HOST_ARCH-unknown-linux-musl"
fi
command -V bad 2>/dev/null || bad() {
shift