From e34bf08e5891bb805aba7b80a35d4267721eaa0e Mon Sep 17 00:00:00 2001 From: Lucas Kanashiro Date: Wed, 20 May 2020 16:28:10 -0300 Subject: [PATCH] riscv64 arch does not support -buildmode=pie Signed-off-by: Lucas Kanashiro --- Makefile.linux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.linux b/Makefile.linux index aba7b149f..c3385313d 100644 --- a/Makefile.linux +++ b/Makefile.linux @@ -20,7 +20,7 @@ COMMANDS += containerd-shim containerd-shim-runc-v1 containerd-shim-runc-v2 # check GOOS for cross compile builds ifeq ($(GOOS),linux) - ifneq ($(GOARCH),$(filter $(GOARCH),mips mipsle mips64 mips64le ppc64)) + ifneq ($(GOARCH),$(filter $(GOARCH),mips mipsle mips64 mips64le ppc64 riscv64)) GO_GCFLAGS += -buildmode=pie endif endif