From eb2530be8434a63e5358b6aa52cd3b76054bc31a Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Thu, 2 Sep 2021 20:04:53 -0700 Subject: [PATCH] Makefile.linux: build on riscv with PIE Since go 1.16, -buildmode=pie is supported on riscv [1], so let's remove the platform from the exclusion list. This reverts commit e34bf08e5891bb805aba7b80a35d4267721eaa0e. [1] https://golang.org/doc/go1.16#riscv Signed-off-by: Kir Kolyshkin --- Makefile.linux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.linux b/Makefile.linux index c3385313d..aba7b149f 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 riscv64)) + ifneq ($(GOARCH),$(filter $(GOARCH),mips mipsle mips64 mips64le ppc64)) GO_GCFLAGS += -buildmode=pie endif endif