c_check: set $hostarch to x86_64 instead of amd64
`uname -m` returns "amd64" on some systems.
This commit is contained in:
parent
fe7dcf98f3
commit
271ceb8bae
1
c_check
1
c_check
|
@ -3,6 +3,7 @@
|
||||||
# Checking cross compile
|
# Checking cross compile
|
||||||
$hostos = `uname -s | sed -e s/\-.*//`; chop($hostos);
|
$hostos = `uname -s | sed -e s/\-.*//`; chop($hostos);
|
||||||
$hostarch = `uname -m | sed -e s/i.86/x86/`;chop($hostarch);
|
$hostarch = `uname -m | sed -e s/i.86/x86/`;chop($hostarch);
|
||||||
|
$hostarch = "x86_64" if ($hostarch eq "amd64");
|
||||||
|
|
||||||
$binary = $ENV{"BINARY"};
|
$binary = $ENV{"BINARY"};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue