summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSam James <sam@cmpct.info>2023-09-11 11:32:45 +0100
committerGitHub <noreply@github.com>2023-09-11 19:32:45 +0900
commiteb4bbf32948303e326a2791c6a875f32d7b5c97f (patch)
tree9ec2318c1a7498d44935b350737630a5733e36bf /Makefile
parentdc97d4849156f555ebdcf9f1703a5d3594468120 (diff)
downloadfzf-eb4bbf32948303e326a2791c6a875f32d7b5c97f.tar.gz
Makefile: build 32-bit binary on armv8l (#3434)
armv8l is always 32-bit and should implement the armv7 ISA, so just use the same filename as for armv7. This avoids wrongly building a 64-bit binary because of an incorrect assumption of what 'armv8l' is (a 32-bit system). Obviously, we should not then build a 64-bit (arm64) binary. Especially given armv8l is often used in arm32-on-arm64 chroots to build stuff for weaker-powered arm32 devices. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 41a698f2..74953937 100644
--- a/Makefile
+++ b/Makefile
@@ -57,7 +57,9 @@ else ifeq ($(UNAME_M),armv6l)
else ifeq ($(UNAME_M),armv7l)
BINARY := $(BINARYARM7)
else ifeq ($(UNAME_M),armv8l)
- BINARY := $(BINARYARM8)
+ # armv8l is always 32-bit and should implement the armv7 ISA, so
+ # just use the same filename as for armv7.
+ BINARY := $(BINARYARM7)
else ifeq ($(UNAME_M),arm64)
BINARY := $(BINARYARM8)
else ifeq ($(UNAME_M),aarch64)