From c6beaf5708c476b00c59513b253fab0d3dac8d71 Mon Sep 17 00:00:00 2001 From: Nathan Zadoks Date: Fri, 11 Mar 2016 21:53:06 +0100 Subject: [PATCH] Handle ARM triples without an endianness suffix Alpine seems to use this, and it results in a wrong builtins.currentSystem. Big-endian ARM systems have triples starting with armv6eb- or armv7eb-, so this doesn't change any systems that already worked. --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 2a043ed1..1215782a 100644 --- a/configure.ac +++ b/configure.ac @@ -16,6 +16,8 @@ AC_ARG_WITH(system, AC_HELP_STRING([--with-system=SYSTEM], machine_name="i686";; amd64) machine_name="x86_64";; + armv6|armv7) + machine_name="${host_cpu}l";; *) machine_name="$host_cpu";; esac