X Tutup
Skip to content

Commit eb2530b

Browse files
committed
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 e34bf08. [1] https://golang.org/doc/go1.16#riscv Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
1 parent 1dfd8a2 commit eb2530b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile.linux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ COMMANDS += containerd-shim containerd-shim-runc-v1 containerd-shim-runc-v2
2020

2121
# check GOOS for cross compile builds
2222
ifeq ($(GOOS),linux)
23-
ifneq ($(GOARCH),$(filter $(GOARCH),mips mipsle mips64 mips64le ppc64 riscv64))
23+
ifneq ($(GOARCH),$(filter $(GOARCH),mips mipsle mips64 mips64le ppc64))
2424
GO_GCFLAGS += -buildmode=pie
2525
endif
2626
endif

0 commit comments

Comments
 (0)
X Tutup