From eac3b25dc92461a7a51c74341f81da7e4c1b23ee Mon Sep 17 00:00:00 2001 From: Paul Morgan Date: Tue, 26 Apr 2016 00:43:49 +0000 Subject: [PATCH] improve portability of the Makefile I like to build on Alpine Linux when possible, but coreutils on Alpine does not include the [`arch`](http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=blob_plain;f=src/coreutils-arch.c;hb=HEAD) wrapper to print the kernel architecture. `uname` and `arch` are both provided by coreutils rpm on RedHat derivatives, so this change does not impact the build on those distros. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f38eda30..d1affda4 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ ifeq ($(VERSION),$(SVERSION)) else RELEASE = untagged endif -ARCH = $(shell arch) +ARCH = $(uname -i) SPEC = rpmbuild/SPECS/$(PROGRAM).spec SOURCE = rpmbuild/SOURCES/$(PROGRAM)-$(VERSION).tar.bz2 SRPM = rpmbuild/SRPMS/$(PROGRAM)-$(VERSION)-$(RELEASE).src.rpm