Fix detection of POWER architecture in c_check.

This is necessary to avoid the false detection of a cross-compiling
environment.
This commit is contained in:
Sébastien Villemot 2015-11-09 18:36:04 +01:00
parent a550431ee6
commit 41407acc19
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@ $hostarch = `uname -m | sed -e s/i.86/x86/`;chop($hostarch);
$hostarch = "x86_64" if ($hostarch eq "amd64");
$hostarch = "arm" if ($hostarch =~ /^arm.*/);
$hostarch = "arm64" if ($hostarch eq "aarch64");
$hostarch = "power" if ($hostarch =~ /^(powerpc|ppc).*/);
$binary = $ENV{"BINARY"};