Skip to content

Commit 271ceb8

Browse files
committed
c_check: set $hostarch to x86_64 instead of amd64
`uname -m` returns "amd64" on some systems.
1 parent fe7dcf9 commit 271ceb8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

c_check

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Checking cross compile
44
$hostos = `uname -s | sed -e s/\-.*//`; chop($hostos);
55
$hostarch = `uname -m | sed -e s/i.86/x86/`;chop($hostarch);
6+
$hostarch = "x86_64" if ($hostarch eq "amd64");
67

78
$binary = $ENV{"BINARY"};
89

0 commit comments

Comments
 (0)