Skip to content

Commit da6d5d6

Browse files
authored
Fix hostarch detection for sparc
1 parent 04fa173 commit da6d5d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

c_check

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
# Checking cross compile
77
$hostos = `uname -s | sed -e s/\-.*//`; chop($hostos);
88
$hostarch = `uname -m | sed -e s/i.86/x86/`;chop($hostarch);
9-
$hostarch = `uname -p` if ($hostos eq "AIX");
9+
$hostarch = `uname -p` if ($hostos eq "AIX" || $hostos eq "SunOS");
10+
chop($hostarch);
1011
$hostarch = "x86_64" if ($hostarch eq "amd64");
1112
$hostarch = "arm" if ($hostarch ne "arm64" && $hostarch =~ /^arm.*/);
1213
$hostarch = "arm64" if ($hostarch eq "aarch64");

0 commit comments

Comments
 (0)