From 4c99c81326f4026fb8c0b8c5e10542205d99c321 Mon Sep 17 00:00:00 2001 From: Johann Neuhauser Date: Wed, 6 Nov 2019 12:50:58 +0100 Subject: [PATCH] mips: -buildmode=pie is not supported for the mips arch Signed-off-by: Johann Neuhauser --- Makefile.linux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.linux b/Makefile.linux index a9f91bbcf..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),ppc64) + ifneq ($(GOARCH),$(filter $(GOARCH),mips mipsle mips64 mips64le ppc64)) GO_GCFLAGS += -buildmode=pie endif endif