From 7823593b6f068f34e4c19544b4cb4abb51cbda19 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Fri, 5 Feb 2021 08:46:38 -0800 Subject: [PATCH] Fix ARCH deduction on armv7l when using Makefiles The Makefile on ARMv7l devices (e.g. Raspberry Pi 400 running the stock Raspbian distro) was failing to deduct the architecture and empty libraries were being built as a result. Building with Meson works fine; only building with make generated empty libraries. Add an override for armv7l -> arm in the Makefile to address this. --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 60755e5..c95d3ca 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,9 @@ endif ifeq ($(ARCH),$(filter $(ARCH),ppc64le)) override ARCH = ppc64 endif +ifeq ($(ARCH),$(filter $(ARCH),armv7l)) + override ARCH = arm +endif LIBDIR := /lib INCLUDEDIR := /usr/include