From a791912cbb06260e1d0271b31959f16a41ddef4c Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Wed, 4 Dec 2024 15:34:57 -0800 Subject: [PATCH] handle uname returning evbarm on NetBSD --- c_check | 3 +++ 1 file changed, 3 insertions(+) diff --git a/c_check b/c_check index c2b52c81b0..c3c2901712 100755 --- a/c_check +++ b/c_check @@ -6,6 +6,9 @@ hostarch=`uname -m | sed -e 's/i.86/x86/'` if [ "$hostos" = "AIX" ] || [ "$hostos" = "SunOS" ]; then hostarch=`uname -p` fi +if [ "$hostarch" = "evbarm" ]; then + hostarch=`uname -p` +fi case "$hostarch" in amd64) hostarch=x86_64 ;; arm*) [ "$hostarch" = "arm64" ] || hostarch='arm' ;;