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:
1
c_check
1
c_check
@@ -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"};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user