]> git.apps.os.sepia.ceph.com Git - fscrypt.git/commitdiff
Makefile: arch command is not portable
authorJoseph Richey <joerichey@google.com>
Wed, 14 Feb 2018 19:20:44 +0000 (11:20 -0800)
committerGitHub <noreply@github.com>
Wed, 14 Feb 2018 19:20:44 +0000 (11:20 -0800)
According to:
https://www.gnu.org/software/coreutils/manual/html_node/arch-invocation.html
the arch command isn't portable, so we switch to uname.

Makefile

index aa82008e8bbed64be4b194416623cce970b0370e..ee571559b0d639cd648fb4fe89b73c0556d5e36d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -181,7 +181,7 @@ $(BIN)/gocovmerge: $(VENDOR)
 
 # Non-go tools downloaded from appropriate repository
 PROTOC_VERSION := 3.5.1
-ARCH := $(shell arch)
+ARCH := $(shell uname -m)
 ifeq (x86_64,$(ARCH))
 PROTOC_ARCH := x86_64
 else ifneq ($(filter i386 i686,$(ARCH)),)