Skip to content

Commit

Permalink
Fix hostarch detection for sparc
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-frbg authored Dec 6, 2020
1 parent 04fa173 commit da6d5d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion c_check
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
# Checking cross compile
$hostos = `uname -s | sed -e s/\-.*//`; chop($hostos);
$hostarch = `uname -m | sed -e s/i.86/x86/`;chop($hostarch);
$hostarch = `uname -p` if ($hostos eq "AIX");
$hostarch = `uname -p` if ($hostos eq "AIX" || $hostos eq "SunOS");
chop($hostarch);
$hostarch = "x86_64" if ($hostarch eq "amd64");
$hostarch = "arm" if ($hostarch ne "arm64" && $hostarch =~ /^arm.*/);
$hostarch = "arm64" if ($hostarch eq "aarch64");
Expand Down

0 comments on commit da6d5d6

Please sign in to comment.