From 642aaba2e0d8d2d8252874df171606cde8d20b83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Wed, 29 Apr 2015 18:14:21 +0200 Subject: [PATCH] Fix detection of ARM architectures in c_check. This is necessary to avoid the false detection of a cross-compiling environment. --- c_check | 2 ++ 1 file changed, 2 insertions(+) diff --git a/c_check b/c_check index fbe9c9fab..99de07067 100644 --- a/c_check +++ b/c_check @@ -4,6 +4,8 @@ $hostos = `uname -s | sed -e s/\-.*//`; chop($hostos); $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"); $binary = $ENV{"BINARY"};