From 41407acc19cd3ca2ee4ab965ed5e19d7776e669e Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Villemot?= Date: Mon, 9 Nov 2015 18:36:04 +0100 Subject: [PATCH] Fix detection of POWER architecture in c_check. This is necessary to avoid the false detection of a cross-compiling environment. --- c_check | 1 + 1 file changed, 1 insertion(+) diff --git a/c_check b/c_check index d694e74..bcf4c2c 100644 --- a/c_check +++ b/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"}; -- 2.7.4