Try workaround Clang triplet on ARMv7l (GH #831)

pull/838/head
Jeffrey Walton 2019-05-01 01:48:00 -04:00
parent 7ef3dacdc2
commit 4acdcc46d0
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 6 additions and 0 deletions

View File

@ -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