use uname -m instead of the arch command

The `arch` command is deprecated on modern systems, and indeed,
many distros do not provide it (one of those being Arch Linux,
ironically). Since `uname` is already used in the Makefile, prefer
its `-m` flag equivalent instead.
This commit is contained in:
Rasmus Moorats 2023-06-12 16:01:18 +03:00
parent 72646221c3
commit ff28230b75
Failed to generate hash of commit

View file

@ -8,7 +8,7 @@ KERNEL_HEADERS ?= /usr/src/linux-headers-$(shell uname -r)/
CLANG ?= clang
LLC ?= llc
LLVM_STRIP ?= llvm-strip -g
ARCH ?= $(shell arch)
ARCH ?= $(shell uname -m)
# as in /usr/src/linux-headers-*/arch/
# TODO: extract correctly the archs, and add more if needed.