From f139e0738090e1abb18fe7a32fcb59b35778331d Mon Sep 17 00:00:00 2001 From: Scott Edlund Date: Mon, 5 Nov 2018 12:37:41 +0700 Subject: [PATCH] enable softfloat on MIPS arch MIPS does not have a floating point unit. Enable softfloat to build binaries run on devices that do not have MIPS_FPU enabled in their kernel. --- bin/cross-compile.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/cross-compile.go b/bin/cross-compile.go index 8e1a1e0b4..2553dba7c 100644 --- a/bin/cross-compile.go +++ b/bin/cross-compile.go @@ -63,7 +63,9 @@ var osarches = []string{ // Special environment flags for a given arch var archFlags = map[string][]string{ - "386": {"GO386=387"}, + "386": {"GO386=387"}, + "mips": {"GOMIPS=softfloat"}, + "mipsle": {"GOMIPS=softfloat"}, } // runEnv - run a shell command with env