Skip to content

Commit

Permalink
Improve portability of arch detection in Makefile
Browse files Browse the repository at this point in the history
'uname -m' is more portable than 'arch'.
  • Loading branch information
nspin committed Oct 27, 2024
1 parent a4d1e54 commit 05b7835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ endif

ETC_LOCALTIME := $(realpath /etc/localtime)

HOST_ARCH ?= $(shell arch)
HOST_ARCH ?= $(shell uname -m)
ifeq ($(HOST_ARCH),x86_64)
DOCKER_PLATFORM := "linux/amd64"
# Intel Macs report i386 instead of x86_64
Expand Down

0 comments on commit 05b7835

Please sign in to comment.