c_check: set $hostarch to x86_64 instead of amd64

`uname -m` returns "amd64" on some systems.
This commit is contained in:
Mike Nolta 2014-12-02 21:23:23 -05:00
parent fe7dcf98f3
commit 271ceb8bae
1 changed files with 1 additions and 0 deletions

View File

@ -3,6 +3,7 @@
# Checking cross compile
$hostos = `uname -s | sed -e s/\-.*//`; chop($hostos);
$hostarch = `uname -m | sed -e s/i.86/x86/`;chop($hostarch);
$hostarch = "x86_64" if ($hostarch eq "amd64");
$binary = $ENV{"BINARY"};