From 4acdcc46d084939e7198733edb63c0958ae914f5 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 1 May 2019 01:48:00 -0400 Subject: [PATCH] Try workaround Clang triplet on ARMv7l (GH #831) --- GNUmakefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/GNUmakefile b/GNUmakefile index fd19baf2..8cc74810 100755 --- a/GNUmakefile +++ b/GNUmakefile @@ -38,6 +38,12 @@ endif # The target machine is the one the package runs on. Most people # call this the "target", but not Autotools. HOSTX := $(shell $(CXX) $(CXXFLAGS) -dumpmachine 2>/dev/null | cut -f 1 -d '-') +# Yet another Clang hack. I think the LLVM devs are making the shit up +# as they go. Also see https://github.com/weidai11/cryptopp/issues/831. +ifeq ($(HOSTX),armv8l-unknown-linux-gnueabihf) + HOSTX := arm-unknown-linux-gnueabihf +endif +# Fallback ifeq ($(HOSTX),) HOSTX := $(shell uname -m 2>/dev/null) endif