Merge pull request #4277 from lucaskanashiro/fix-build-on-riscv64

riscv64 arch does not support -buildmode=pie
This commit is contained in:
Derek McGowan
2020-05-20 12:46:50 -07:00
committed by GitHub

View File

@@ -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