From ac0d624c8cae1a6866e7d23b0b45b51dd17625f3 Mon Sep 17 00:00:00 2001 From: Ella Stanforth Date: Thu, 21 Apr 2022 10:11:55 +0000 Subject: [PATCH] iglupkg: allow for GNU host triple --- iglupkg.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/iglupkg.sh b/iglupkg.sh index cb579b1..138b1c6 100755 --- a/iglupkg.sh +++ b/iglupkg.sh @@ -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